56,687
社区成员
发帖
与我相关
我的任务
分享
create trigger tg_updIO --修改收入支出
on ioT
for update
as
declare @t datetime,@no int
if
update(ioname) or
update(ioMoney) or
update(aTypeNo) or
update(bTypeNo) or
update(myActNo) or
update(outActNo) or
update(ioTime) or
update(remark)
begin
set @t = getdate()
set @no = (select ioNo from deleted)
update ioT set updTime = @t,updTimes=updTimes+1 where ioNo =@no
end
GO