有2种方法: 1、清空表时使用truncate命令,而不用delete命令 使用truncate命令的好处: 2、清空表数据后,使用alter修改表 alter table table_name auto_increment=1;