Title: RE: How to do a bulk bind to load data into a table

from my understanding the FORALL statement only helps
you when processing data in collections or with BULK
when retrieving rows into collections. the bulk bind
functionality is btw only available starting with 9i.
you might want to try to bulk retrieve the data in
a collection and then to bulk insert it in the new table
but i would guess that the only real way to optimize your
statement might by to go for the "insert into b select a"
construct if this is an option in your case.

DO

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 22:05
To: Multiple recipients of list ORACLE-L
Subject: How to do a bulk bind to load data into a table


I'm looking at a way to speed up a huge insert (100K records at a time). In looking at FORALL, it looks like it could do what I want, but I'm not sure how to set it up correctly. What I currently do is:

set up a cursor, selecting the rows from table a
for cursor_rec in cursor_data loop
   insert into table b
   commit evey 2K rows
end loop

Is there a better way to do this?

Thank you for your help.


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to