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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL and boolean stuff

Re: SQL and boolean stuff

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Fri, 27 Feb 2004 15:15:23 -0800
Message-ID: <1077923686.453275@yasure>


Bricklen wrote:

> CASE works fine on 817
>
> select case when 1=0 then 'no' when 1=1 then 'yes' else 'neither' end
> from dual;
>
> Does it not work for you?

In 8.1.7 it works in SQL but not in PL/SQL. In 9i it works in both.

The only way in 8.1.7 to use CASE in PL/SQL is with dynamic SQL.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Feb 27 2004 - 17:15:23 CST

Original text of this message

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