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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Bad day, or really not possible?

Re: Bad day, or really not possible?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 26 Feb 2002 11:54:37 -0800
Message-ID: <a5gp5t08h8@drn.newsguy.com>


In article <3c7bda8b.0_at_209.128.1.3>, "Jon says...
>
>INSERT into sometable
> (somecolumn)
> SELECT CASE WHEN z <1000 THEN xvalue ELSE yvalue END from someothertable;
>
>Says it's not expecting the symbol case.
>Just not possible, or am I doing something completely silly?
>
>
>
>

816 and up:

ops$tkyte_at_ORA817DEV.US.ORACLE.COM> insert into t ( x )   2 select case when 100 < 200 then 1 else 2 end from dual;

1 row created.

works fine.

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Tue Feb 26 2002 - 13:54:37 CST

Original text of this message

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