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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

fetch ref cursor into object type

907516Jun 29 2012 — edited Jan 14 2013
Hi! I've a ref cursor already opened by an external procedure. I need to fetch it into an object table like this
CREATE OR REPLACE TYPE TAB_CUSTOM AS TABLE OF REC_CUSTOM;
where
CREATE OR REPLACE TYPE REC_CUSTOM AS OBJECT
(
	my_id	NUMBER(6)
        .......
       ,CONSTRUCTOR FUNCTION REC_CUSTOM RETURN SELF AS RESULT
)
NOT FINAL;
/
has the exact columns, types and size of the opened ref cursor.

How can this be accomplished?
This post has been answered by Solomon Yakobson on Jun 29 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2013
Added on Jun 29 2012
5 comments
5,640 views