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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete all records 1

Status
Not open for further replies.

kupe

Technical User
Sep 23, 2002
376
Is there a way to delete all records in a table, but retain all the fields et al, please, gurus?
 
Sure:
[tt]
TRUNCATE tblname
[/tt]
which is fast, or
[tt]
DELETE FROM tblname
[/tt]
which returns a record count.
 
Saved again by Tony. Very grateful. Cheers to you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top