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 Populate a table type variable from a cursor

513219Oct 27 2007 — edited Oct 29 2007
Hi

I have a stored procedure (P1) that returns a ref cursor as the output.

Another procedure (P2) receives this ref cursor (C).

In this procedure (P2), I want to do a Bulk Collect from this ref cursor (C) in
a table type variable that has been declared locally in the procedure P2. I have created appropriate Object Type and Table Types at the database level.

Please advise how to do it. I tried to do it in different ways, but was not able to do it - each time I faced incompatible data-type related issues.

Regards
Madhup
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2007
Added on Oct 27 2007
6 comments
4,878 views