Mysql delete all rows and reset autoincrement

30
Oct
0

delete all the rows of a mysql talble

 

delete from tablename

 

reset the auto increment key

 

ALTER TABLE tablename AUTO_INCREMENT=0

Filed under: mysql
Comments (0) Trackbacks (0)

No comments yet.

Sorry, the comment form is closed at this time.