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 17:59:05 GMT
Message-ID: <JlfF7.16275$D5.5804631@typhoon.san.rr.com>


I noticed I left the commit out right after I sent that but I knew the poster would know what I meant. Obviously, you need to commit after each batch.

Richard

Nicolas Bronke wrote:
>
> > 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;
> >
> And where are the advantage against deleting all records with one command if
> there is no commit between?
>
> Regards
> Nicolas
Received on Sun Nov 04 2001 - 11:59:05 CST

Original text of this message

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