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

前端 未结 4 1212
孤街浪徒
孤街浪徒 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:18

    You could check if data has been changed before you edit something. In that case if someone has edited data while other person is doing his edit, he will be informed about it.

    Kind of like stackoverflow handles commenting.

提交回复
热议问题