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;
Logo

一站式 AI 云服务平台

更多推荐