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 -> Update SQL differences

Update SQL differences

From: <cpereyra_at_ix.netcom.com>
Date: Fri, 07 May 1999 17:15:07 GMT
Message-ID: <7gv72m$ih9$1@nnrp1.deja.com>

In Sybase, the following command will succeed.

update tablename
set t.columname = t1.columname
from tablename t, othertable t1
where t.id = t1.id

In Oracle it fails with a syntax error. I know that I can write a correlated subquery and get the same results, but I wonder if there is a different way. If the correlated subquery is the only way in Oracle, is the subquery flattened into a join by the optimizer?

Thanks,

Carlos Pereyra

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Fri May 07 1999 - 12:15:07 CDT

Original text of this message

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