在mysql中,有时候需要把递增的值初始化为1(你也可以修改成其它起始值): alter table table_name auto_increment=1; 不要设置为0...... 转载于:https://www.cnblogs.com/Liangw/p/3142624.html