Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: insert and commit 1000 records at a time

Re: insert and commit 1000 records at a time

From: Daniel Fink <Daniel.Fink_at_Sun.COM>
Date: Fri, 17 Oct 2003 12:44:26 -0800
Message-ID: <F001.005D3820.20031017124426@fatcity.com>


MaryAnn,

To get back to the original question, use a MOD function on rownum to get your commit point. Check the docs to make sure, but try

If mod(rownum, 1000) = 0
then

     commit;
end if;

Daniel Fink

MaryAnn Atkinson wrote:

> I still dont get it...
> I dont know what I have done to have me confused more
> than I first asked the question...

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Daniel Fink
  INET: Daniel.Fink_at_Sun.COM

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Fri Oct 17 2003 - 15:44:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US