Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Query problem with UPDATE
I've tried to carry out the following query:
UPDATE TAVOLA1
SET CAMPO1 = CAMPO1 + (SELECT CAMPO2 FROM TAVOLA2 WHERE ...);
Oracle answers by saying MISSING EXPRESSION
I've solved the issue by writing a PL/SQL program where I put the result
of SELECT CAMPO2 FROM TAVOLA2 WHERE .. into a variable X and then
by performing:
UPDATE TAVOLA1
SET CAMPO1 = CAMPO1 + X;
Does it exists any other way to do so without writing a PL/SQL program?
Thanks in advance
-- Posted from [212.48.4.46] via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Thu Dec 07 2000 - 10:22:11 CST