Quantcast
Channel: BlogoSfera » locking
Viewing all articles
Browse latest Browse all 13

How mysql table/row lock work

$
0
0

it’s days that I’m reading a lot of the MySQL documentation about table/row locking, but I’m still confused. I’m using InnoDB. The following code will lock the row with id=5 until I commit, so other sessions can read that row, but they can’t update. Can others sessions insert? SELECT name FROM users WHERE id=5 FOR […]

The post How mysql table/row lock work appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 13

Trending Articles