Set autoincrement value in mysql

Sometimes it is necessary to set the starting value of MySQL auto-increment value.  This can be set as

alter table table_name auto_increment=XXXX

where table_name is the name of the table and XXXX is the starting value of auto increment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.