Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> EASY ? Case statement

EASY ? Case statement

From: Olivier Villeneuve <olivier.villeneuve_at_fra.sas.com>
Date: Thu, 2 Nov 2000 18:18:48 +0100
Message-ID: <8ts7lq$aqh$1@license1.unx.sas.com>

Hi There,

What is the right syntax to do this :

 select case ename when ('SCOTT') then 'IIII' else 'CCCC' end as test ,  ename from emp;

This code returns an error ORA-00923

Best Regards,
Olivier. Received on Thu Nov 02 2000 - 11:18:48 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US