SELECT then immediately DELETE mysql record

后端 未结 5 2178
情深已故
情深已故 2021-01-17 14:14

I have a PHP script that runs a SELECT query then immediately deletes the record. There are multiple machines that are pinging the same php file and fetching data from the s

5条回答
  •  误落风尘
    2021-01-17 14:36

    well I would use table locks read more here

    Locking is safe and applies to one client session. A table lock protects only against inappropriate reads or writes by other sessions.

提交回复
热议问题