Auto Increment after delete in MySQL

后端 未结 17 2024
醉酒成梦
醉酒成梦 2020-11-22 09:50

I have a MySQL table with a primary key field that has AUTO_INCREMENT on. After reading other posts on here I\'ve noticed people with the same problem and with varied answer

17条回答
  •  悲&欢浪女
    2020-11-22 10:19

    You can use your mysql client software/script to specify where the primary key should start from after deleting the required records.

提交回复
热议问题