参考 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;

相关文章: