且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

mySQL数据库:重置自动增量字段

更新时间:2023-02-12 08:37:44

假设您要在完成测试后删除记录,则TRUNCATE命令将删除所有记录并重置自动增量值.

Assuming you're deleting the records when you're done testing, a TRUNCATE command will delete all records and reset the autoincrement value.