Is there a concurrency with UPDATE count=count+1?

前端 未结 4 1810
闹比i
闹比i 2021-01-23 00:42

I wanted to know, will I run into any concurrency problem with this?

This is NOT in a transaction. This code is for Sqlite(prototype), but I plan to use it

4条回答
  •  走了就别回头了
    2021-01-23 01:35

    not a problem You will have implicit transaction anyway. So it should not be a problem.

    Even if you change TRANSACTION ISOLATION LEVEL, it should work just fine, at least on SQLServer.

提交回复
热议问题