mysql - InnoDB事务级别Serializable level的时候find一个不存的数据会加什么锁
PHP中文网
PHP中文网 2017-04-17 15:18:43
0
2
600

InnoDB事务级别Serializable level的时候find一个不存的数据会加什么锁。

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
阿神

The manual says it very clearly This level is like REPEATABLE READ, but InnoDB implicitly converts all plain SELECT statements to SELECT ... LOCK IN SHARE MODE.
This means that SELECT will be implicitly converted into SELECT...LOCK IN SHARE MODE, which is a shared lock.

Peter_Zhu

Serializable level
This level is very simple to understand. Read plus shared lock, write plus exclusive lock, and read and write mutually exclusive. The pessimistic locking theory used is simple to implement and the data is very safe, but the concurrency capability is very poor.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!