SQL Server2000下面 ,打开两个查询分析器先执行
begin tran
update table1 set c = '11' where c='11'
waitfor delay '00:00:30'
commit tran
然后
begin tran
select * from table1
where c='11'
commit tran
理论上第一个执行完后第二条就能执行.可是第二条不能执行.线程阻塞.跪求答案.
...全文
2086打赏收藏
菜鸟问个SQL锁问题
SQL Server2000下面 ,打开两个查询分析器先执行 begin tran update table1 set c = '11' where c='11' waitfor delay '00:00:30' commit tran 然后 begin tran select * from table1 where c='11' commit tran 理论上第一个执行完后第二条就能执行.可是第二条不能执行.线程阻塞.跪求答案.