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

Home -> Community -> Mailing Lists -> Oracle-L -> frequent commit, example ??? HELP

frequent commit, example ??? HELP

From: Andrea Oracle <andreaoracle_at_yahoo.com>
Date: Thu, 15 Nov 2001 12:27:18 -0800
Message-ID: <F001.003C69BA.20011115120021@fatcity.com>

Hi all,

Thank you all those for responding to the frequent commit question. So members suggested using count, and loop. May I have real example. (OK, I'm bad at pl/sql). Site table has 2 million rows, how to so a commit, let's say 5000 rows. Site_id is unique in site table. How does the counter fit in the following update sql?

update site a set a.site_code =

       (select c.area_code
       from site_location b,
       area c where a.site_id = b.site_id and
c.area_id = b.area_id);

I put a counter is a sample code, and update runs 10 times! then commit, then runs another 10 times! then commit .... I must miss something. Please give me as mush detail as you can. Thank you so much!

Andrea



Do You Yahoo!?
Find the one for you at Yahoo! Personals http://personals.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Andrea Oracle
  INET: andreaoracle_at_yahoo.com
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: 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 Thu Nov 15 2001 - 14:27:18 CST

Original text of this message

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