1、先删除之前的联合主键 Alter table 表名 Drop Primary Key 2、添加新的主键 alter table 表名 add constraint 主键名 primary key (字段1,字段2,字段3)