Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Trick to update 2 tables in the same view?

Re: Trick to update 2 tables in the same view?

From: Spencer <spencerp_at_swbell.net>
Date: Sat, 27 Jan 2001 15:17:34 -0600
Message-ID: <MVGc6.20$Pn.5676@nnrp1.sbc.net>

the quick fix is to use a separate update statement against each table.

the "trick" would be creating a view which is "key-preserved", which is only only possible (AFAIK) if the tables include the same primary key columns, and the view includes an equi-join on the primary keys.

HTH "Tony" <micronet_at_chello.nl> wrote in message news:94ovna$5jv$1_at_news1.xs4all.nl...
> Is there a trick to update 2 tables in the same view ?
>
> Without triggering the
> "ORA-01779: cannot modify a column which maps to a non key-preserved
 table"
>
> Something in PL/SQL perhaps?
>
> Thanx Tony
>
>
>
>
Received on Sat Jan 27 2001 - 15:17:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US