mysql添加unique约束 sql语句:alter table tb_name add unique(uid,wid);插入数据: insert ignore into user_info (uid,wid) values (‘x’,’y’);