摘要:
公司里的每个项目都有很多一次要操作两次以上数据库的,为了数据的完整性,这就需要使用事务事务也属于存储过程,代码如下ALTER proc [dbo].[js_takemoney]@userid bigint, --参数@usercode varchar(50),@amount numeric(18,2),@rmb numeric(18,2) asbegindeclare @balance numeric(18,2)declare @takecharg numeric(18,2) declare @takechargmoney numeric(18,2) declare @turetype num 阅读全文
posted @ 2012-01-13 09:29
iisp
阅读(333)
评论(0)
推荐(0)

浙公网安备 33010602011771号