当表某个字段更新是触发器编写

--使用updating判断
create  or  replace  trigger  test_trig 
before  update  on  表1
begin
    if updating( '字段1' then
      T-SQL ;
    end  if;
    if updating( '字段2' then
       T-SQL ;
    end  if;
end ;

你可能感兴趣的:(当表某个字段更新是触发器编写)