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 get the record set into array?

660316Dec 3 2008 — edited Dec 3 2008
Hi,

I want to get the record set into array in the procedure and do the processing of the array later in procedure.

below is the stored procedure i am working on:

procedure bulk_delete_group(p_group_id in Array_GroupListID) as
begin

for i in p_group_id.first..p_group_id.last loop

--Here I have to get the list of user id before deleting group
SELECT user_id into *<SOME ARRAY>* FROM group_members WHERE group_id = p_group_id(i);

DELETE group WHERE group_id = p_group_id(i);

--Process the user id array after group deletion..
end loop;
end bulk_delete_group;

Thanks in advance
Aditya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2008
Added on Dec 3 2008
4 comments
422 views