在已经有数据的表中添加自增主键

运行下面两个sql语句即可

alter table result_1 add id int;
alter table result_1 change id id int not null auto_increment primary key; 

  

posted on 2020-03-14 23:29  宥宁  阅读(781)  评论(0编辑  收藏  举报

导航