我有一个看起来像这样的金融交易(伪):
begin select record for update update record(same record as selected) insert another record into another table commit
如果我SELECT ... FOR UPDATE在事务中调用,是否只有在提交事务时才会释放特定行的锁?
SELECT ... FOR UPDATE
mysql innodb acid
acid ×1
innodb ×1
mysql ×1