SyntaxFix
Write A Post
Hire A Developer
Questions
If you cannot use TRUNCATE (e.g. because of foreign key constraints) you can use an alter table after deleting all rows to restart the auto_increment:
TRUNCATE
ALTER TABLE mytable AUTO_INCREMENT = 1