mysql auto_increment by 5?

后端 未结 3 2022
予麋鹿
予麋鹿 2020-12-06 15:01

I\'m running into a really, really, really weird problem with mysql.

I have a primary key, \"id\". It\'s set to auto increment. Problem is, first entry started at \"

3条回答
  •  离开以前
    2020-12-06 15:19

    it appears the table was created with an increment set to 5. you can change it back to one with the following:

    ALTER TABLE tbl AUTO_INCREMENT = 1;
    

提交回复
热议问题