会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
罗曼骑士
博客园
首页
新随笔
联系
订阅
管理
2017年12月29日
使用insert ignore来避免向数据库重复插入数据
摘要: mysql中 insert ignore 的使用示例如下: INSERT IGNORE INTO `table_name` (`reportid`, `content`) VALUES (‘11111’,‘hello’); 需要注意的是,如果对应的表没有加唯一索引或者相应主键的话,insert ig
阅读全文
posted @ 2017-12-29 14:45 罗曼骑士
阅读(2124)
评论(0)
推荐(0)
编辑
公告