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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Removing data form a table

RE: Removing data form a table

From: Jack C. Applewhite <japplewhite_at_inetprofit.com>
Date: Fri, 08 Feb 2002 13:57:55 -0800
Message-ID: <F001.0040ADB0.20020208135309@fatcity.com>

Lance,

Truncate Table <YourTableHere> ;

This deletes all the rows in the table without the cost of rollback.

Jack



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----Original Message-----
Sent: Friday, February 08, 2002 3:25 PM
To: Multiple recipients of list ORACLE-L

I want to create a procedure the drops all the data from a table.

I was trying to drop table then create this proved to be extremely complicated in Oracle. I think the above route is much better.

Does anyone know how to do this?

Lance

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack C. Applewhite
  INET: japplewhite_at_inetprofit.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Fri Feb 08 2002 - 15:57:55 CST

Original text of this message

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