inserting in batches
820272Dec 8 2010 — edited Dec 16 2010Dear Friends,
I have a table with 2 columns,column names being OLD_CUST and NEW_CUST.
Since the number of records to be inserted is huge I need to insert records in batches of 1000 or 10000 into the table so that the database itself does not collapse .
So I will send a datatable from my .NET application of 1000 or 10000 records.
I need a stored procedure which will accept the datatable and will have a cursor which will loop thru' each record and insert it into the Oracle table.
I need help with this proc.
It will be great if some one could post such a working Pl/SQL code.
Thanks for your efforts.