Oracle does not support join
in the update
syntax:
UPDATE T123
SET COL1 = 1,
VER1 = VER1 + 1
WHERE EXISTS (SELECT 1 FROM WAPTDT_123 T WHERE T123.REQUEST_ID = T.NUM_FLD);
This is standard SQL and should work in any database.
Your query has other problems as well . . . the subquery is not in parentheses, the inner join
has no first table.
EDIT:
You can write this query with that subquery:
UPDATE T123
SET COL1 = 1,
VER1 = VER1 + 1
WHERE T123.REQUEST_ID IN (SELECT C1 FROM ( SELECT T.NUM_FLD C1 FROM WAPTDT_123 T) TAB );
I switched this to an IN
, just because that is another option. You could still use EXISTS
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…