怎样在表里设计主键联合约束

alter table Score
    add constraint PK_stuid_cousreId primary key(stuid,cousreId)
go

原文地址:https://www.cnblogs.com/selfimprove/p/3222156.html