java - MySQL中,使用聚合函数+for update会锁表吗?
伊谢尔伦
伊谢尔伦 2017-04-18 10:54:08
0
4
628

比如 select count(*) frmo table_A for update

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
洪涛

This can help you
http://blog.csdn.net/liqfyiyi...

PHPzhong

innodb storage engine supports row locking.
Consider other storage engines in detail.

洪涛

mysql, rr isolation mode, innodb storage engine, will lock each row

Peter_Zhu

My personal feeling is table lock, innodb row lock is conditional
1: There must be where
2: The fields involved in where must have indexes
3: Large range lock. For example, id>=100 will lock all IDs greater than or equal to 100

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!