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 -> Re: EASY ? Case statement

Re: EASY ? Case statement

From: Denis ALEXANDRE <alex_at_apro.fr>
Date: Fri, 3 Nov 2000 00:31:10 +0100
Message-ID: <8tsue8$ecm@dns.apro.fr>

"Olivier Villeneuve" <olivier.villeneuve_at_fra.sas.com> a écrit dans le message news: 8ts7lq$aqh$1_at_license1.unx.sas.com...
>
> 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
Received on Thu Nov 02 2000 - 17:31:10 CST

Original text of this message

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