摘要:
加锁是在操作数据时进行了,不能事后加锁。例:begin tran insert 表 with(TABLOCKX) --加锁 (字段列表) values(值列表) commit tran其他锁的示例 --设tb(A,B,C) create table #tb(A varchar(2),B varchar(2),C varchar(2)) insert into #tb select 'a1','b1','c1' union all select 'a2','b2','c2' union all sel 阅读全文