create or replace trigger trigafter
insert or delete or updateon emp for each ifinsert then
insert into emp_log values(USER,'insert',datetime);
else update then
insert into emp_log values(USER,'update',datetime);
else delete then
insert into emp_log values(USER,'delete',datetime);
end if;
end;
我这是获得触发器的记录保存到自己建的emp_log表中,希望大侠们帮小弟解决下 完事立马给分 谢谢了 哦 要用SQL SERVER