innodb锁-不一样索引下更新sql的加锁过程

1、根据主键更新 mysql> start transaction; Query OK, 0 rows affected (0.00 sec) mysql> update test_user set status=1 where user_id=1; Query OK, 0 rows affected (0.00 sec) Rows matched: 1 Changed: 0 Warning
相关文章
相关标签/搜索