create or replace trigger TIG_USER before update on "USER" for each row begin select sysdate into :new.update_date from dual; exception when others then end;
上面的代码是数据更新前给字段update_date添加为当前时间。
create or replace trigger TIG_USER before update on "USER" for each row begin select sysdate into :new.update_date from dual; exception when others then end;
上面的代码是数据更新前给字段update_date添加为当前时间。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。