syntax for nolock in sql

前端 未结 5 820
感动是毒
感动是毒 2020-12-30 01:15

I have seen sql statements using nolock and with(nolock) e.g -

select * from table1 nolock where column1 > 10

AND

selec         


        
5条回答
  •  Happy的楠姐
    2020-12-30 01:58

    They are both technically correct, however not using the WITH keyword has been deprecated as of SQL 2005, so get used to using the WITH keyword - short answer, use the WITH keyword.

提交回复
热议问题