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: RE: CASE Expressions

RE: RE: CASE Expressions

From: Jon Walthour <jonw_at_fuse.net>
Date: Mon, 23 Jul 2001 10:46:30 -0700
Message-ID: <F001.003521DE.20010723102701@fatcity.com>

CASE is supported in 8.1.6 and 8.1.7. Jonathan, as far as I can tell, your SQL statement is flawed. Shouldn't it be something like:

select case when 1=1 then 2 end as test
  from dual;

Jon Walthour

>--- Original Message ---
>From: Yuval Arnon <Yuval.Arnon_at_wwfent.com>
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Date: 7/23/01 12:42:00 PM
>

Jonathan
>CASE is not supported in 8.1.7.
>
>
>SQL> select * from v$version;
>
    

>
>BANNER
>----------------------------------------------------------------
>Oracle8i Enterprise Edition Release 8.1.7.1.0 - Production
>
>SQL> SELECT CASE 1 WHEN 1 THEN 2
> 2 FROM dual;
> SELECT CASE 1 WHEN 1 THEN 2
> *
>ERROR at line 1:
>ORA-00923: FROM keyword not found where expected
>
>
>SQL>
>
>Yuval
>
>-----Original Message-----
>Sent: Monday, July 23, 2001 11:03 AM
>To: Multiple recipients of list ORACLE-L
>
>
>I'm doing some research for a book, and I need to know when
>Oracle began to support CASE expressions. I thought it was
>in Oracle9i, but the new features list seems to imply that
>CASE may have come about in 8.1.7. Can anyone with 8.1.7
>verify this for me? I have 8.1.6 and 9.whatever, but not
>8.1.7 or I'd try it myself.
>
>If you have 8.1.7, and have a second to experiment, try the
>following query as a test:
>
>SELECT CASE 1 WHEN 1 THEN 2
>FROM dual;
>
>Best regards,
>
>Jonathan Gennick
>mailto:jonathan_at_gennick.com * 906.387.1698
>http://Gennick.com * http://MichiganWaterfalls.com * http://MetalDrums.org
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Jonathan Gennick
> INET: jonathan_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).
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jon Walthour
  INET: jonw_at_fuse.net

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 Mon Jul 23 2001 - 12:46:30 CDT

Original text of this message

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