Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tool for deleting table's data?

Status
Not open for further replies.

asd234

Technical User
Feb 4, 2003
11
LT
Hi;
I'm looking for different methods of deleting the data of a very large table(with milions of records), because using "delete" statement takes more than 4 hours to perform and Ido need a faster method.Please send me your sugestions.
[I'm running on informix dynamic server 7.3 with unixware platform]
With regards.
 
Probably the fastest and most efficient in terms of less fragmentation would be to drop the table and rebuild it from scratch.
 
Hi:

dodge20 is right if you need to eliminate all the data in a table. If there's data you need to save, One other thing you can do is use the High Performance Loader to unload the data, drop and recreate the table, and reload the saved data.

One other technique I've used is to rename the table in question. From isql/dbaccess query language:

rename table tablename to oldtablename

Then recreate tablename. Now, I can work on oldtablename at my liesure.

Regards,


Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top