mysql 为表字段增加唯一约束

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

posted @ 2020-01-21 10:48  BloggerSb  阅读(4028)  评论(0编辑  收藏  举报