/ Published in: MySQL
for auto increment ids, when you delete records this will reset the number for the next auto id.
Expand |
Embed | Plain Text
ALTER TABLE tablename AUTO_INCREMENT = 1
You need to login to post a comment.
matula on 09/24/10
1 person have marked this snippet as a favorite
for auto increment ids, when you delete records this will reset the number for the next auto id.
ALTER TABLE tablename AUTO_INCREMENT = 1
You need to login to post a comment.