Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update statement with Case syntax

469636Aug 25 2010 — edited Aug 26 2010
I want to put case statement in an update statement using Oracle 10g

I'm getting a syntax error on the last line Ora-00933: SQL command not properly ended

Help please

UPDATE EMP a
SET EMP.TYPE = CASE
WHEN 'Y' = 'A' THEN 'DIV'
WHEN 'Y' = '1' THEN 'DEF'
END CASE;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2010
Added on Aug 25 2010
5 comments
65,275 views