在 SQL Server 数据库中,UPDATE 和 DELETE 语句中的目标表上的WITH (NOLOCK) 查询提示将被忽略。但是,这是否也适用于更新或删除连接中包含的表?例如,是:
update t
set value1 = 123
FROM mytable t
inner join othertable o with (nolock) on t.id = o.id
相当于:
update t
set value1 = 123
FROM mytable t
inner join othertable o on t.id = o.id