I would really appreciate help with this one
I want to update records in Table1 using REPLACE, only if they meet certain conditionS in TABLE1 and in TABLE2.
The regular update using just the SET statement works fine, but when I use the REPLACE statement I get errors.
This is my code:
UPDATE TABLE1
SET TEXT_VALUE = REPLACE(TEXT_VALUE, 'VALUE1', 'VALUE2')
from TABLE1 O JOIN TABLE2 L ON O.OBJECT_ID=L.OBJECT_ID
WHERE O.TEXT_VALUE like 'CONDITION1' AND L.CHECK_INOUT = 'CONDITION2';
I get the following error:
Error at Command Line : 3 Column : 1
Error report -
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
Many Thanks,
Elias
I want to update records in Table1 using REPLACE, only if they meet certain conditionS in TABLE1 and in TABLE2.
The regular update using just the SET statement works fine, but when I use the REPLACE statement I get errors.
This is my code:
UPDATE TABLE1
SET TEXT_VALUE = REPLACE(TEXT_VALUE, 'VALUE1', 'VALUE2')
from TABLE1 O JOIN TABLE2 L ON O.OBJECT_ID=L.OBJECT_ID
WHERE O.TEXT_VALUE like 'CONDITION1' AND L.CHECK_INOUT = 'CONDITION2';
I get the following error:
Error at Command Line : 3 Column : 1
Error report -
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
Many Thanks,
Elias