日期:2014-05-16  浏览次数:20591 次

触发器创建

create trigger TestTriggerInsert
on Test for insert
as
insert into TempLog(tablename,pks,adddate,isUsed,options)
select   'Test',  'id='+i.id, getdate(), 'N', 'update' from Test t,  inserted i
where t.id= i.id
;