返回数说广场 #日有所学#
1
Mysql在一个窗口中执行,create table t1 (id int primary key) ; begin; select * from t1; 在另外一个窗口执行alter table t1 add name varchar(16); 是否会被锁,是什么锁?(B)
A 会被锁,select 语句获取了排它锁
B 会被锁,select 语句获取了共享锁
C 会被锁,alter 语句获取了排它锁
D 不会被锁,正常添加
0
1 78
分享
评论
热门数说


