摘要:
事务处理是在数据处理时经常遇到的问题,经常用到的方法有以下三种总结整理如下:方法1:直接写入到sql 中在存储过程中使用 BEGIN TRANS, COMMIT TRANS, ROLLBACK TRANS 实现begin transdeclare @orderDetailsError int,@procuntError intdelete from [order details] where productid=42select @orderDetailsError =@@errordelete from products where productid=42select @procuntEr 阅读全文
posted @ 2012-11-13 13:39
纳米程序员
阅读(177)
评论(0)
推荐(0)


浙公网安备 33010602011771号