Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Update question
Try again. I still have it wrong with the number of parens. Basically, enclose your entire subquery in a set of parens.
update <some table>
set <some column> = (subquery)
/
so... try this (it works):
UPDATE <some table>
SET <some column> = (
SELECT col1 + col2 FROM (SELECT 1 AS col1 FROM DUAL), (SELECT 2 AS col2 FROM DUAL) )