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: Stored Procedure Problem

Re: Stored Procedure Problem

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Sun, 14 Mar 2004 13:20:38 -0800
Message-ID: <1079299213.245223@yasure>


John De Lello wrote:

> Hi Daniel,
>
> Thanks for the reply. I'm not really sure I understand what you are saying.
> How would I modify the OPEN to allow a variable in the WHERE then?
>
> Thank you
> John D

What you wrote is:
TYPE cur_GetGroupSids IS REF CURSOR
in your package header

What you wrote in the procedure is:
OPEN resultcursor FOR

I am suggesting you do something like this: OPEN cur_GetGroupSids IS

In other words open the REF CURSOR ... not the TYPE.

Take a look at this demo:
http://www.psoug.org/reference/ref_cursors.html

Note the example labeled "Child Procedure".

-- 
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 Sun Mar 14 2004 - 15:20:38 CST

Original text of this message

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