浏览 5806 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-11-13
create or replace trigger buid_mend_manager after insert or update or delete on TMP_EIC_MEND referencing old as old_value new as new_value for each row begin if inserting then insert into Eic_mend(mendid, mendname) values(:new_value.mendid, :new_value.mendname); elsif updating then update Eic_mend set mendname = :new_value.mendname where mendid = :new_value.mendid; elsif deleting then delete from Eic_mend where mendid = :old_value.mendid; end if; end; 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |