版权声明:本文为博主原创文章,转载请注明出处 http://blog.csdn.net/wxx_csdn https://blog.csdn.net/wxx_csdn/article/details/85630103
自增
alter table 表名 change id id int not null auto_increment ;
主键
alter table 表名 add primary key(id);
自增
alter table 表名 change id id int not null auto_increment ;
主键
alter table 表名 add primary key(id);