比如 select count(*) frmo table_A for update
PHPz2017-04-18 10:56:08
innodb storage engine supports row locking.
Consider other storage engines in detail.
天蓬老师2017-04-18 10:56:08
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