Navicat清空Mysql表后 id自增从1开始

可用alter table table_name AUTO_INCREMENT=n命令来重设自增的起始值

或者用 truncate table table_name 清空表 id就会从1开始

猜你喜欢

转载自itfinder.iteye.com/blog/2202458