Updating AUTO_INCREMENT value of all tables in a MySQL database

前端 未结 8 1675
旧巷少年郎
旧巷少年郎 2020-12-02 22:52

It is possbile set/reset the AUTO_INCREMENT value of a MySQL table via

ALTER TABLE some_table AUTO_INCREMENT = 1000

However I need

8条回答
  •  悲哀的现实
    2020-12-02 23:15

    Reset mysql table auto increment was very easy, we can do it with single query, please see this http://webobserve.blogspot.com/2011/02/reset-mysql-table-autoincrement.html.

提交回复
热议问题