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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Help on Update Query

Re: Help on Update Query

From: Dmitriy Agafonov <da_at_intercall.net>
Date: 1998/01/04
Message-ID: <34AFE06B.AF96CF60@intercall.net>#1/1

The syntax is wrong.
Try this:
update Table1 T1

    set (col1, col2, col3) =

        (select col1, col2, col3 from Table2 where col1 = T1.col1);

Regards,

    Dmitriy Agafonov

Shankar Muthukrishnan wrote:

> I am able to execute the following query on Microsoft SQLServer.
> The update plugs in 3 column values from T2 into T1.
> update T1
> set T1.col1 = T2.col1,
> T1.col2 = T2.col2,
> T1.col3 = T2.col3
> from Table1 T1, Table T2
> where (T1.key = T2.key)
>
> Any help on Oracle is appreciated.
> Thanks.
Received on Sun Jan 04 1998 - 00:00:00 CST

Original text of this message

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