给数据库里的表设置联合主键

代码如下:

View Code
1 create table userOURealation(
2 userid int not null,
3 nodeid varchar(20) not null,
4 primary key(userid,nodeid)
5 )
6 go
原文地址:https://www.cnblogs.com/zcttxs/p/2423594.html