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!

how to create table from ref cursor

oraLaroJan 25 2013 — edited Jan 25 2013
I have a proc that returns a ref cursor, whats the simplest way to create a table based on the return of the ref cursor?

declare
type rc is ref cursor;
p_data rc;
begin
call_my_proc(p_data);
:result := p_data; -- If I run this in TOAD I can see the data here but I want to create a table based on it rather than outputting it)
end;


thanks.


edit: sorry. typed this wrong first time, should be right now
This post has been answered by BluShadow on Jan 25 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2013
Added on Jan 25 2013
5 comments
2,070 views