sql中多列确定唯一的约束怎么创建

ALTER TABLE TABLE1 ADD CONSTRAINT uni_1 unique(col1,col2).
上面语句的功能是将col1和col2确定为unique既唯一。

posted on 2018-04-24 18:47  高达  阅读(400)  评论(0)    收藏  举报

导航