摘要: '; the_title(); echo ''; the_content();endwhile;?> 阅读全文
posted @ 2014-03-24 21:44 kedarui 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 事务处理是在数据处理时经常遇到的问题,经常用到的方法有以下三种总结整理如下:方法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 @procuntErr 阅读全文
posted @ 2014-03-24 16:39 kedarui 阅读(1039) 评论(0) 推荐(0) 编辑