Register Login

Difference between Bulk Collect and Forall

Updated May 18, 2018

Bulk Collect vs Forall

Hello Experts,

May I know what is the difference between Bulk Collect and FORALL?

Suppose I am inserting 10000 records due to some issue few records are not inserted, how to find which records are not inserted, which method follow to find.

Please assist here,

Thanks in advance,


Comments

  • 20 Apr 2017 12:07 pm Sushma Helpful Answer

    BULK COLLECT is used to fetch the records through the cursor. Bulk collect extract data from multiple rows in a single fetch thus improving the speed of data retrieval. It also gives a command to PL/SQL engine for bulk-binding the input collections before sending them to SQL engine.

    FORALL is used to perform DML operation of the fetched data. It quickly INSERTs, UPDATEs, and DELETEs that use collections to change multiple rows of data. FORALL also command the PL/SQL engine to bulk-bind input collections before sending them to the SQL engine.
     


×