TRUNCATE

TRUNCATE

TRUNCATE TABLE table_name

The TRUNCATE statement deletes all records from a table. It is quicker than the equivalent DELETE statement as it DROPs and CREATEs the table. It is not transaction safe (so will return an error if there are any active transactions or locks).



Mastering MySQL 4
Mastering MySQL 4
ISBN: 0782141625
EAN: 2147483647
Year: 2003
Pages: 230
Authors: Ian Gilfillan

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net