Re: Update on join, how?
From: Bruce W. Robinson <BRUCE_W_ROBINSON_at_CCM.JF.INTEL.COM>
Date: 1996/11/07
Message-ID: <32822874.190C_at_CCM.JF.INTEL.COM>#1/1
Date: 1996/11/07
Message-ID: <32822874.190C_at_CCM.JF.INTEL.COM>#1/1
L. Tseng wrote:
>
> Does anyone know how to do an update on join like in Sybase/MS SQL Server?
>
> update table_A
> set a.cola = 'x'
> FROM table_A a, table_B b
> where a.col = b.col
> and .......
>
> It seems to me Oracle does not support the 'FROM' in an update syntax?
> If yes, why is that? Thanks.
Use the correlated subselect capability:
update table_A a set a.cola = ( select cola from table_B b where a.col = b.col and .....);
brucer Received on Thu Nov 07 1996 - 00:00:00 CET