I need to reset my table counter back to 0 - is there a MySQL command for this?
+1 cause we posted it at the same time.
Jeremy Morgan
2009-11-25 18:35:58
+1
A:
You can also use the TRUNCATE statement. It will remove all the data and reset the auto increment.
TRUNCATE TABLE [TableName];
Is the same as
DELETE * FROM [TableName];
ALTER TABLE [TableName] AUTO_INCREMENT = 0;
Peter Bailey
2009-11-25 18:43:39