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: PL/SQL problem

Re: PL/SQL problem

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Thu, 06 Feb 2003 09:23:54 +0000
Message-ID: <b1t2j6$7rk$1@ctb-nnrp2.saix.net>


Jan Gelbrich wrote:

> DECODE can only be used in a SQL statement, but not within PL/SQL.
> Source: Oracle SQL Reference by Kreines & Jacobs, O´Reilly.

Bull.

SQL> create or replace procedure xtest as   2 x varchar2(20);
  3 begin
  4 select decode('xxx', '1', '1', '2' ) into x from dual;   5* end;
SQL> / Procedure created.

SQL> show errors
No errors.
SQL>

--
Billy
Received on Thu Feb 06 2003 - 03:23:54 CST

Original text of this message

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