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: Empty a table..

Re: Empty a table..

From: Bob Withers <Bob.Withers_at_mci.com>
Date: Thu, 27 Aug 1998 18:39:48 GMT
Message-ID: <MPG.104f641acf2d268f9896bc@news.internetmci.com>


In article <6s47on$mn3$1_at_pascal.a2000.nl>, avbentem_at_DONT-YOU-DAREdds.nl says...
> >What is the fastest way to empty a table with SQL (I do not mean the
> easiest
> >way !).. I have an Oracle 7.x database.
>
> Fastest, and best as it will return all used space to Oracle:
>
> truncate table my_table;
>
> Note that there is no way back. Rollback wn't help you, as Oracle will
> automatically commit all open transactions.

This will also not fire any delete triggers which may be on the table. Received on Thu Aug 27 1998 - 13:39:48 CDT

Original text of this message

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