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!

Best way to transform cursor data to table data

user2081233May 30 2014 — edited May 30 2014

Hello,

I do have a problem that there is a procedure that return a SQL cursor from a complicated Select. I need to sum first column data grouped by second column data. Procedure output is used by others so there is limited possibility to change it.

I tried to bulk load cursor into table type, but I was unable to either load the data (cursor is sys_ref and table type global) or unable to manipulate table type by select (defined local cursor type and local table type).

I think that it is possible to load row by row via loop. But maybe there is some other better way?

M

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2014
Added on May 30 2014
11 comments
7,596 views