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!

Does subsequent BULK COLLECT into collection truncate the existing rows?

user4900730Oct 13 2009 — edited Oct 13 2009
TYPE t_tab_prds IS TABLE OF my_cursor%TYPE;

v_tab_prds t_tab_prds;

OPEN my_cursor;
FETCH my_cursor BULK COLLECT INTO v_tab_prds;
CLOSE my_cursor

another session may change/delete rows

OPEN my_cursor;
FETCH my_cursor BULK COLLECT INTO v_tab_prds; -- WILL v_tab_prds be zapped before the second FETCH or will the rows be mixed? Do I need to
-- delete the rows manually from v_tab_prds before the second FETCH?
CLOSE my_cursor
This post has been answered by Solomon Yakobson on Oct 13 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2009
Added on Oct 13 2009
1 comment
552 views