Locking a MySQL database so only one person at once can run a query?

前端 未结 4 1200
孤街浪徒
孤街浪徒 2021-01-03 04:57

I am having a few issues when people are trying to access a MySQL database and they are trying to update tables with the same information.

I have a webpage written u

4条回答
  •  鱼传尺愫
    2021-01-03 05:32

    Read up on database transactions. That's probably a better way to handle what you need than running LOCK TABLES.

提交回复
热议问题