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: Nicolas Bronke <nb_at_trinity.de>
Date: Sun, 4 Nov 2001 13:40:08 +0100
Message-ID: <9s3d1a$fds$00$1@news.t-online.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;
>

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 - 06:40:08 CST

Original text of this message

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