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

前端 未结 4 1823
闹比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条回答
  •  猫巷女王i
    2021-01-23 01:12

    No this shouldn't be a problem. By default the locking mechanism should take care of any concurrency issues in single statements.

提交回复
热议问题