触发器如何得到那些字段更改了

create trigger tr_process on 表
after insert,update
as
select name
from syscolumns
where id=object_id('表')
and (substring(columns_updated(),(colid-1)/8+1,1)
&power(2,(colid-1)%8))=power(2,(colid-1)%8)
order by colid
go

原文地址:https://www.cnblogs.com/martian6125/p/9631276.html