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

Home -> Community -> Mailing Lists -> Oracle-L -> Case stmt not compiling

Case stmt not compiling

From: <cosltemp-g.manoj_at_orbitech.co.in>
Date: Thu, 13 Jun 2002 22:03:18 -0800
Message-ID: <F001.0047DCD0.20020613220318@fatcity.com>


  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

Original text of this message

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