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;
数据库主键id重新排序方法
最新推荐文章于 2024-04-17 20:57:28 发布