How do I increase the "primary key" autoincrement number? How do I increase the "primary key" autoincrement number? database database

How do I increase the "primary key" autoincrement number?


Very simple query:

ALTER TABLE table_name AUTO_INCREMENT=200;

The MySql documentation mentions this in the ALTER TABLE syntax page.


You can set the new value of your auto-increment using:

ALTER TABLE table_name AUTO_INCREMENT = 200;


Not sure why you would want to, but this should work:

ALTER TABLE table_name AUTO_INCREMENT = 200;