我见过使用nolock和(nolock)的sql语句,例如 -
select * from table1 nolock where column1 > 10
和
select * from table1 with(nolock) where column1 > 10
以上哪项陈述是正确的,为什么?
sql-server syntax nolock
nolock ×1
sql-server ×1
syntax ×1