第一步:给 id 增加auto_increment 属性
alter table tablename modify id int(11) auto_increment;
第二步:给自增值设置初始值
alter table tablename auto_increment=10000;
第一步:给 id 增加auto_increment 属性
alter table tablename modify id int(11) auto_increment;
第二步:给自增值设置初始值
alter table tablename auto_increment=10000;
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。