mysql索引冲突_mysql唯一索引已有键值冲突解决办法
建唯一索引:alter ignore table tmp_qw2 add unique key uk_uid(user_id);IGNORE is a MySQL extension to standard SQL. It controls how ALTER TABLE works if there are duplicates on unique keys in the new table...