mysql 为表字段增加唯一约束 alter table add unique(字段名称) 或 alter table add CONSTRAINT 约束名称 UNIQUE (column1,column2)