Reset the auto increment value for a MySQL table

The following example changes the auto increment value for the table named "applytable" to 100. This means that the next time you insert a record into this table the value of the auto incremental primary key will be 100.

If the highest value for the column is already greater than 100 then it will be set to the highest value plus 1.

ALTER TABLE mytable AUTO_INCREMENT = 100
 
The relevent info are highlighted with red circles in the screenshot below.

Most Popular

How to select first div and change data of its.

The difference between React vs AngularJs