mysql修改联合主键

参考 https://blog.csdn.net/BockSong/article/details/80933477

alter table TABNAME drop primary key;

alter table TABNAME add primary key(another_col,...);

alter table TABNAME 
modify field1 varchar(30) default NULL;

原文地址:https://www.cnblogs.com/white-knight/p/10455390.html