mysql data auto-increment reset to start from 0

truncate table 表名

Note that this operation will empty the table
truncate and the truncated table in Navicat, back to empty the table, and reset the primary key to 1 to start

Guess you like

Origin blog.csdn.net/wenyichuan/article/details/109898714