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 - Insert large number of rows fast

SanjayRsSep 5 2007 — edited Sep 5 2007
I have a tables A , B and C and I select some data from A, B and C using some complex criteria.
Table A B and C has 10mil rows.
final rows to be insert into table D is about 3mil.
Currently the rows are inserted one at a time and there are 3 mil inserts in the plsql.

What is the best way to create these rows.
psudocode

begin
for loop ..... loop
--compled selection criteria.

insert into D ..... ;
end loop ;
end ;



SS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2007
Added on Sep 5 2007
10 comments
3,450 views