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

Home -> Community -> Usenet -> c.d.o.misc -> Re: need to delete 37000000 rows

Re: need to delete 37000000 rows

From: Richard Kuhler <noone_at_nowhere.com>
Date: Sun, 04 Nov 2001 02:15:55 GMT
Message-ID: <vx1F7.14969$D5.5349546@typhoon.san.rr.com>

Why can't you just do something like this to delete 10,000 (or whatever) at a time:

loop

  delete table_x
  where ...
    and rownum <= 10000;

  exit when sql%rowcount = 0;

end loop;

Richard Received on Sat Nov 03 2001 - 20:15:55 CST

Original text of this message

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