暂无图片
返回数说广场
不为什么
2024-12-12
Mysql在一个窗口中执行,create table t1 (id int primary key) ; begin; select * from t1; 在另外一个窗口执行alter table t1 add name varchar(16); 是否会被锁,是什么锁?D A 不会被锁,正常添加 B 会被锁,select 语句获取了排它锁 C 会被锁,alter 语句获取了排它锁 D 会被锁,select 语句获取了共享锁
0
暂无图片 0
54
分享

评论

热门数说