oracle中使用update触发器更新时间

匿名 (未验证) 提交于 2019-12-02 23:57:01
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添加为当前时间。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!