mysql 为表字段增加唯一约束

alter table add unique(字段名称) 或 alter table add CONSTRAINT 约束名称 UNIQUE (column1,column2)

原文地址:https://www.cnblogs.com/shy1766IT/p/12220929.html