什么是SQL Server中的“with(nolock)”?

旧时模样 提交于 2020-08-11 21:41:52

问题:

Can someone explain the implications of using with (nolock) on queries, when you should/shouldn't use it? 当你应该/不应该使用它时,有人可以解释使用with (nolock)对查询的影响吗?

For example, if you have a banking application with high transaction rates and a lot of data in certain tables, in what types of queries would nolock be okay? 例如,如果您的银行应用程序具有较高的事务率和某些表中的大量数据,那么哪些类型的查询可以解决? Are there cases when you should always use it/never use it? 是否应该经常使用它/从不使用它?


解决方案:

参考一: https://stackoom.com/question/2seC/什么是SQL-Server中的-with-nolock
参考二: https://oldbug.net/q/2seC/What-is-with-nolock-in-SQL-Server
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!