摘要:
问题:50个线程,先查询数据库的一个记录 t,然后对这个记录+1,最后更新到数据库 (更新的时候,不允许使用 update test_concurrent set sum =sum -1 where id=1,如果这个做就看不出来效果了,必须使用update test_concurrent set 阅读全文
posted @ 2019-01-11 17:46
阳光11
阅读(406)
评论(0)
推荐(0)
2019年1月11日