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

代码如下:

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

 

posted @ 2012-03-29 16:31  zhangchun  阅读(3330)  评论(0编辑  收藏  举报