随笔分类 -  数据库

摘要:set statistics profile on set statistics io on set statistics time on go 你执行的语句 go set statistics profile off set statistics io off ... 阅读全文
posted @ 2008-05-06 11:39 Kai.Ma 阅读(479) 评论(0) 推荐(0) 编辑
摘要:【表A】与【表B】之间有外键约束(具体怎么约束的无所谓,因为外键和事务死锁没有绝对关系)。【表A】=主键表,【表B】=外键表。 公司有几位程序员写的代码总是出现死锁,现在将事务死锁情况重现. using(事务) { try{ for()//一个循环 { if(查询【表A】有该【记录】==false)//这个查询没有用当前事务的数据库连... 阅读全文
posted @ 2008-04-24 14:24 Kai.Ma 阅读(13905) 评论(24) 推荐(1) 编辑

点击右上角即可分享
微信分享提示