摘要: 转自:http://blog.sina.com.cn/s/blog_3f776cca0100xka5.html最近有用到mysql批量更新,使用最原始的批量update发现性能很差,将网上看到的总结一下一共有以下三种办法:1.批量update,一条记录update一次,性能很差update test_tbl set dr='2' where id=1;2.replace into 或者insert into ...on duplicate key updatereplace into test_tbl (id,dr) values(1,'2'),(2,' 阅读全文
posted @ 2013-04-17 15:03 鍒樻爧 阅读(214) 评论(0) 推荐(0) 编辑