ITeye博客

在数据库更新一条记录的特定字段前将表中的部分字段的原数据写入到另一张表中。

wyl232 · 2007-09-13 11:59 · oracle · Markdown

/**
*  在数据库更新一条记录的特定字段前将表中的部分字段的原数据写入到另一张表中。
*/
create or replace trigger eosoperator_pass
  before update of PASSWORD on eosoperator 
  for each row

begin
  insert into EOSOPERATOR_T_PASS (OPERATORID,USERID,PASSWORD) values(:OLD.OPERATORID,:OLD.USERID,:OLD.PASSWORD);
end eosoperator_pass;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。