锁定Ado.Net [英] Locking in Ado.Net
本文介绍了锁定Ado.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个访问同一数据库的应用程序.该数据库是MySql.我希望当一个应用程序正在更新表时,第二个应用程序无法访问该表.
I have two applications that access the same database. The database is MySql. I want that when one application is updating a table then the second application cannot access that table.
How this can be done in Ado.net?
推荐答案
Google for SQL锁定 ...
阅读此内容:了解SQL Server中的锁定 [
Google for SQL lock...
Read this: Understanding Locking in SQL Server[^]
请参见此处 [此处 [^ ].
See here[^] or here[^].
但是我们如何使用ADO.NET实现这些锁?
but how do we implement these locks using ADO.NET?
这篇关于锁定Ado.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文