使用Navicat删除记录后id如何更新 1、使用以下命令来重设自增的起始值 // n表示从几开始自增,1就表示从1开始 alter table user_tests AUTO_INCREMENT=n 2、使用以下命令清空数据表,ID就会从1开始 truncate table user_tests