alter table user drop id;
alter table user add id int(3) not null first;
alter table user modify column id int( 3 ) not null auto_increment,add primary key(id);
第二种方法
alter table t_order drop id;
alter table t_order add id int(11) primary key auto_increment first;
版权声明:本文为zhengguofeng0328原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。