insert ignore
时间: 2023-10-13 21:03:47 浏览: 115
ignore插件
insert ignore是MySQL中的一种语法,用于在插入数据时忽略已存在的记录。当我们使用insert ignore语法插入数据时,如果插入的数据在表中已经存在(主键或唯一键已存在),MySQL会忽略该条插入操作,而不会报错或插入重复的数据。这样可以避免插入重复数据的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [MySQL:插入数据insert ignore,重复数据自动忽略](https://blog.csdn.net/qq_41848006/article/details/128274196)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [MySQL中的insert ignore into讲解](https://blog.csdn.net/zgaoq/article/details/124432806)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文