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: Boolean Function Problem.

Re: Boolean Function Problem.

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 15 Mar 2000 22:42:23 +0100
Message-ID: <953184634.27717.0.pluto.d4ee154e@news.demon.nl>


boolean is pl/sql only, you CAN'T use it in ordinary sql, so not in function returns.

Hth,

Sybrand Bakker, Oracle DBA

Moore <rlmoore_at_purdue.edu> wrote in message news:Pine.SOL.4.10.10003151627110.15285-100000_at_herald.cc.purdue.edu...
> Oh please help me!
>
> What is wrong?
>
> SQL> CREATE OR REPLACE
> 2 FUNCTION FOO RETURN BOOLEAN IS
> 3 BEGIN
> 4 RETURN TRUE;
> 5 END FOO;
> 6 /
>
> Function created.
>
> SQL> select foo from dual;
> ERROR:
> ORA-06550: line 1, column 12:
> PLS-00382: expression is of wrong type
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> no rows selected
>
Received on Wed Mar 15 2000 - 15:42:23 CST

Original text of this message

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