①创建时:create table sc (

studentno int,

courseid int,

score int,

primary key (studentno,courseid) );

②修改时:alter table tb_name add primary key (字段1,字段2,字段3);

作者 龙飞