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: Conversion of Update from MSSQL generates "SQL command not properly ended"

Re: Conversion of Update from MSSQL generates "SQL command not properly ended"

From: VC <boston103_at_hotmail.com>
Date: Fri, 23 Jul 2004 22:17:03 GMT
Message-ID: <z7gMc.14922$eM2.364@attbi_s51>


This :

---

update table1 set (col1, col2) = (select col1,col2 from tdable2 where recid=table1.recid)
where exists (select 1 from t2 where recid=table1.recid and recid in(1, 2))
---

... should read as:

---

update table1 set (col1, col2) = (select col1,col2 from tdable2 where recid=table1.recid)
where exists (select 1 from table2 where recid=table1.recid and recid in(1, 2))
---

VC Received on Fri Jul 23 2004 - 17:17:03 CDT

Original text of this message

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