更新表数据时主键重复的问题

insert ignore into table...
update ignore table...

ignore 表示如果已经存在相同的记录,则忽略当前新数据或本次更新

 转载请注明博客出处:http://www.cnblogs.com/cjh-notes/

原文地址:https://www.cnblogs.com/cjh-notes/p/10957907.html