Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Case Statement
Does Oracle8 support the case statement in SELECT.
For example:
SELECT (CASE col_a WHEN 1 THEN 'ONE' WHEN 2 THEN 'TWO' ELSE 'UNKNOWN' END) FROM table...
I know decode() can accomplish this, but I like to know this for migration reasons.
Thanks,
Mason Liu Received on Fri Nov 03 2000 - 18:16:37 CST