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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Assign Cursor a value in Oracle Procedure?

Re: Assign Cursor a value in Oracle Procedure?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 9 Feb 2001 18:13:48 +0100
Message-ID: <t88ao8aha7in7c@beta-news.demon.nl>

That you can't do as your value, a string, is incompatible with the cursor type.
You can however use an extra out parameter of type boolean.

Hth,

Sybrand Bakker, Oracle DBA

<josheastburn_at_hotmail.com> wrote in message news:9613e0$2oc$1_at_nnrp1.deja.com...
> I am in the process of writing an Oracle procedure within a package.
> Here is my package declaration:
>
> create or replace package slw as
> type cursorType is ref cursor;
> procedure login ( user_id in varchar2, password in varchar2,
> cursorType out results );
> end slw;
>
>
> Within the procedure body, is it possible to assign the cursor
> (results) to a value? I want to send back "TRUE" or "FALSE". Is there
> a way to do something like:
> results := "TRUE"; ??????
>
>
> Thanks,
> Josh
>
>
> Sent via Deja.com
> http://www.deja.com/
Received on Fri Feb 09 2001 - 11:13:48 CST

Original text of this message

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