【发布时间】:2009-06-19 15:40:46
【问题描述】:
使用“SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED”和NOLOCK有什么区别?一个比另一个好?
【问题讨论】:
-
请注意,
NOLOCK提示在 MSSQL 2012 中已弃用,将替换为等效的READUNCOMMITTED提示。 Source. -
建议来源说 -
Support for use of the READUNCOMMITTED and NOLOCK hints in the FROM clause that apply to the target table of an UPDATE or DELETE statement will be removed in a future version of SQL Server.。它并没有说NOLOCK已被弃用。我相信目前NOLOCK和READUNCOMMITTED提示都可用。
标签: sql sql-server transaction-isolation