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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Update on a join

Re: Update on a join

From: The Ghost <The_at_Ghost.com>
Date: Mon, 19 Feb 2001 17:05:41 GMT
Message-ID: <Fnck6.184756$KP3.46325657@news3.rdc1.on.home.com>

update table1 table_alias
set fldx = (select fldY from table2 where key = table_alias.key)

"Dave Sutton" <dpsutton_at_marchsystems.co.uk> wrote in message news:96rhnl$h16$1_at_newsreaderm1.core.theplanet.net...
> Help!!
>
> I need to perform an update on a single table but the information to be
 used
> in the update comes from another table.
>
> In SQL server I would have used:
>
> UPDATE Table1
> Set Table1.FldX = Table2.FldY
> FROM Table1, Table2
> WHERE Table1.Key = Table2.Key
>
> But ORACLE won't allow me to do this.
>
> Any ideas??
>
> Thanks.
>
>
> Dave
>
>
Received on Mon Feb 19 2001 - 11:05:41 CST

Original text of this message

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