Posted By

matula on 09/24/10


Tagged

mysql


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

virendrakryadav


Reset MySQL Auto Increment number


 / Published in: MySQL
 

for auto increment ids, when you delete records this will reset the number for the next auto id.

  1. ALTER TABLE tablename AUTO_INCREMENT = 1

Report this snippet  

You need to login to post a comment.