小编tom*_*mmo的帖子

ACID 事务 innodb 中的行锁定

我有一个看起来像这样的金融交易(伪):

begin
    select record for update
    update record(same record as selected)
    insert another record into another table
commit
Run Code Online (Sandbox Code Playgroud)

如果我SELECT ... FOR UPDATE在事务中调用,是否只有在提交事务时才会释放特定行的锁?

mysql innodb acid

2
推荐指数
1
解决办法
2034
查看次数

标签 统计

acid ×1

innodb ×1

mysql ×1