Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Case stmt not compiling
Hi,
The following case stmt is not compiling in stored proc.
select (case when 'N' in ('C','N','U','V') then 'C' else (case when
'N' = 'P' then 'P'
end) end)
into l_ln_status
from dual;
I get the following error :
PLS-00103: Encountered the symbol "CASE" when expecting one of the following:
( - + mod not null others <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count cur
the same sql runs at sqlprompt.
Thanks
Manoj.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: cosltemp-g.manoj_at_orbitech.co.in
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jun 14 2002 - 01:03:18 CDT
![]() |
![]() |