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

来源:互联网 发布:oracle和sql语句的区别 编辑:程序博客网 时间:2024/05/18 00:33
--使用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;
0 0