Auto-increment is not resetting in MySQL

后端 未结 8 1476
花落未央
花落未央 2020-12-03 17:53

I am trying to set up a script to generate a particular set of test data into my database, at the beginning of which I want to clear the tables concerned without dropping co

8条回答
  •  旧时难觅i
    2020-12-03 18:17

    ALTER TABLE table_name AUTO_INCREMENT = value;
    This worked for me, I had to set it to the last record in my database while going through the operations panel never worked for me.

提交回复
热议问题