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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: CASE under Oracle8i

Re: CASE under Oracle8i

From: Jonathan Gennick <listmail_at_gennick.com>
Date: Tue, 26 Mar 2002 19:43:19 -0800
Message-ID: <F001.004345EA.20020326194319@fatcity.com>


Larry, that's brilliant. That solution hadn't occurred to me.

On Sun, 24 Mar 2002 20:53:19 -0800, Larry Elkins wrote:

>
>The easy way around it is to use Native Dynamic SQL.
>
> 1 DECLARE
> 2 dual_message VARCHAR2(20);
> 3 BEGIN
> 4 Execute Immediate
> 5 'SELECT CASE
> 6 WHEN DUMMY=''X'' THEN ''Dual is OK''
> 7 ELSE ''Dual is messed up''
> 8 END
> 9 FROM DUAL' into dual_message;
> 10 DBMS_OUTPUT.PUT_LINE(dual_message);
> 11* END;
>SQL> /
>Dual is OK
>
>PL/SQL procedure successfully completed.

Jonathan Gennick --- Brighten the corner where you are mailto:jonathan_at_gennick.com
http://Gennick.com * http://MichiganWaterfalls.com * http://ValleySpur.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jonathan Gennick
  INET: listmail_at_gennick.com

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 Tue Mar 26 2002 - 21:43:19 CST

Original text of this message

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