Reputation: 11
I am having difficulties executing a pl/sql statement with jdbcs callablestatement.
This is the error I'm getting:
PL/SQL: ORA-00933: SQL command not properly ended`
And this is the statement:
DECLARE
BEGIN
IF ('XXX' <> 'XXX')
THEN
update XXX set XXX=1 where XXX='XXX' and XXX like 'XXX'
END IF;
END;
/
It runs fine in Oracle sql developer. I have tried removing "/" and the semicolon behing "END", but it does not work. Get the same error now matter what I do. The values have been replaced with "XXX" for this post.
Do any of you wise guys have some helpful insight?
Upvotes: 1
Views: 199
Reputation: 27251
UPDATE
statementDECLARE
keyword is optionaland XXX like 'XXX'
. using Like
condition without wildcards is the same as using equality operator. Upvotes: 2