有如下两个SQL Connection同时发生:
第一个:set tran isolation level repeatable read
begin tran
select * from table1 where [status]='new'
waitfor delay '00:00:10'
update table1 set [status]='read' where [status]='new'
commit
第二个:
insert into table1 ([name]) values ('micky')table1表结构:
ID guid
Name vchar(10)
Status vchar(10) default='new'已有记录:
8CC3ED6A-CAE4-4CFF-96AA-3BCF8013367B keith      new
6B4AC0ED-8F8C-462E-87D7-124BC0C4FF5E mariah     new      希望在第一个连接处理tran的update语句只更新已有的行记录,而不应该处理连接2中新增加的记录,即希望得到如下的结果:
8CC3ED6A-CAE4-4CFF-96AA-3BCF8013367B keith      read
6B4AC0ED-8F8C-462E-87D7-124BC0C4FF5E mariah     read     
49530DEC-3F16-4E26-BA52-8DA5817179B3    micky           new该如何修改?