Set or reset AUTO_INCREMENT in a table on MySql

If you want to set or reset the AUTO_INCREMENT value to a determinated value in MySql, use this command

ALTER TABLE TABLE_NAME AUTO_INCREMENT = X

where X is the new value or 0 to reset.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>