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!

Where to put the commit in the FORALL BULK COLLECT LOOP

user1636556Dec 8 2010 — edited Dec 14 2010
Hi,

Have the following LOOP code using FORALL and bulk collect, but didnt know where to put the
'commit' :




--------------------------------------------------------------------------------
open f_viewed;
LOOP

fetch f_viewed bulk collect into f_viewed_rec LIMIT 2000;

forall i in 1..f_viewed_rec.count

insert into jwoodman.jw_job_history_112300
values f_viewed_rec(i);

--commit; [Can I put this 'commit' here? - Jenny]

EXIT when f_viewed%NOTFOUND;
END LOOP;

commit;


--------------------------------------------------------------------------------
Thanks,

- Jenny
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2011
Added on Dec 8 2010
15 comments
8,989 views