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!

PLSQL Collection for holding ids

Atanas81Feb 17 2016 — edited Feb 18 2016

Hello experts,

May I ask for your help?

I have tables like this: COMP_REL(PARENT NUMBER, CHILD NUMBER ...) and COMP_INFO(CHILD NUMBER, ...).

In a procedure, I need to make several select statements from COMP_INFO for all children under a parent (grouping by different columns of COMP_INFO).

The problem is that COMP_REL table is huge. How can I use PLSQL collection(or array) to store the children of COMP_REL that I need and then join this collection with COMP_INFO to get the different data?

Is it a good practice to use PLSQL collections for this purpose at all?


Thank you, Atanas.

This post has been answered by Atanas81 on Feb 18 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2016
Added on Feb 17 2016
19 comments
1,576 views