Home > Database > Mysql Tutorial > 解决获取某张表信息的时候不发生共享锁

解决获取某张表信息的时候不发生共享锁

WBOY
Release: 2016-06-07 14:54:41
Original
1266 people have browsed it

本文来自CNBLOG日志,感觉不错,现在来分享 具体可查看:http://www.cnblogs.com/Charles2008/archive/2010/12/15/MyTransactionStudy.html 共享锁 ----采用with nolock关键字或者采用Read uncommited就可以解决了。最终的SQL语句如下:SELECT Field FROM TAB

本文来自CNBLOG日志,感觉不错,现在来分享
具体可查看: http://www.cnblogs.com/Charles2008/archive/2010/12/15/MyTransactionStudy.html 共享锁
----采用with nolock关键字或者采用Read uncommited就可以解决了。最终的SQL语句如下:
SELECT Field FROM TABLE WITH NOLOCK
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template