Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: fastest way of deleting all rows in a table
"ShravanaKumar" <shravanakumar.ks_at_siemens.com> wrote in message
news:3E5F61AF.EDCB5E19_at_siemens.com...
> Hi All,
>
> We are using Oracle 9i on Solaris 8.
>
> I would like to know, which is the fastest way of deleting all rows from
> a table and why ?
>
> a. Truncate table .....
Faster than delete. You may want to explore "reuse storage" along with truncate.
> b. delete table .....
You can recover (rollback) from it (if you change your mind).
> c. drop table .... ( an re-create the table afterwards )
Will make all stored procs invalid that depend on the table
>
> can some one shed light on this ?
>
> Thanks,
>
> Best Regards,
> Shravana Kumar.
>
>
>
Received on Fri Feb 28 2003 - 12:07:34 CST