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

前端 未结 4 1850
闹比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:11

    I may be wrong, but I don't think you would have a problem; the tag_name table I would think would be locked while the UPDATE occurs, so that any other updates waiting to be executed would essentially be queued up rather than occurring concurrently.

提交回复
热议问题