Stop MySQL Reusing AUTO_INCREMENT IDs

后端 未结 5 1656
闹比i
闹比i 2020-12-07 01:40

I have a table with an AUTO_INCREMENT primary key. If the last row in the table is deleted, the next-inserted row will take the same ID.

Is there a way of getting My

5条回答
  •  半阙折子戏
    2020-12-07 01:52

    That's not the way our MySQL databases work, when a record is deleted the next inserted has the next number, not the one that was deleted.

提交回复
热议问题