I have a problem with an update statement, that I developed under 11g, when running under 10g.
I reduced the problem to:
Create table test (
col1 number(10)
);
insert into test values (1);
update test set col1 = (select 1 from DUAL ) + 1;
select * from test;
When executing on Oracle 10, I get the following error:
update test set col1 = (select 1 from DUAL ) + 1
Error at line 1
ORA-00933: SQL-Befehl wurde nicht korrekt beendet
Any ideas, how I can modify the statement to run under 10g? I want to use a single statement.