将两个或者多个字段一起约束成一个唯一约束 1 alter table 表名 add constraint 约束名 unique (列名1,列名2) 转载于:https://www.cnblogs.com/xbq8080/p/6122083.html