行锁定,具有到表锁的升级。
可使用 LOCK TABLE 命令来锁定一个表,而不是使用缺省的行锁定。
The LOCK TABLE command can be used to lock a table instead of using the default row locking.
由于我们没有操控锁,因此引擎在需要一行(或者页)时会对其进行锁定。
Since we are not manipulating locks ourselves, the engine is locking each row (or page) as it needs it.
应用推荐