示例

表锁-MyISAM

  1. create table tlock (a int(10) unsigned not null auto_increment,primary key(a)
  2. )engine=myisam default charset=utf8;
  3. insert into tlock(a) values(1),(2),(3);

session1:
image.png

session2:
image.png

session3:
image.png