文件名称:sqlserver的触发器
文件大小:895KB
文件格式:RAR
更新时间:2015-04-20 11:44:34
触发器
create trigger trig_InsertTransInfo on TransInfo for insert as begin declare @cardId char(10) declare @type char(4) declare @money money select @cardId=CardId,@type=transType,@money=transMoney from inserted if(@type='支取') update bank set CurrentMoney=CurrentMoney-@money where CardId=@cardId else update bank set CurrentMoney=CurrentMoney+@money where CardId=@cardId end
【文件预览】:
触发器
----触发器V2.0.ppt(1.65MB)
----SQLQuery1.sql(1KB)
----bank数据库0.txt(926B)