Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Call a procedure that returns a refcursor, use it in another proc's sql?

oatsMar 30 2009 — edited Apr 1 2009
I have a procedure that returns a refcursor; how can I include that refcursor in a sql statement that's in another procedure, or view etc?

This is the kind of foolery I've tried so far (myproc1 returns a ref cursor):

create or replace procedure myproc2
(
rc ref cursor
)
AS
rc1 ref cursor;
begin
EXECUTE myproc1(rc1);
open rc for
select rc1.* from rc1;
end myproc2;
This post has been answered by Karthick2003 on Mar 31 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2009
Added on Mar 30 2009
17 comments
2,810 views