Ansel's Blog

It would probably render the application more complex

博客园 首页 新随笔 联系 订阅 管理

2005年9月8日 #

摘要: 在数据库访问时。如果处理并发访问的问题或者当一个操作员对一个对象作读操作时。另一个操作员对此对象作写操作的时候如何避免死锁发生/********** 加锁 ***************设table1(A,B,C)A B Ca1 b1 c1a2 b2 c2a3 b3 c31)排它锁新建两个连接在第一个连接中执行以下语句begin tran update table1 set A='aa' wher... 阅读全文
posted @ 2005-09-08 12:01 Ansel 阅读(9935) 评论(1) 推荐(1) 编辑