MySQL主键删除/添加
Alter table qa_user add primary key(id);
Alter table qa_user change id id int(10) not null auto_increment;
Alter table qa_user add primary key(id);
Alter table qa_user change id id int(10) not null auto_increment;
删除
Alter table qa_user change id id int(10);//删除自增长
Alter table qa_user drop primary key;//删除主建
Alter table qa_user change id id int(10);//删除自增长
Alter table qa_user drop primary key;//删除主建
------------------------- A little Progress a day makes you a big success... ----------------------------