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