create or replace trigger mob.record_content_modify
after insert or update or delete
ON mob.record_content FOR EACH ROW
BEGIN
if INSERTING then
INSERT INTO nrecord_content@wydk //wydk 为 dblink
(
COL1 ,
COL2 ,
COL3 ,
................
COL25 ,
COL40 )
VALUES
(:new.COL1 ,
:new.COL2 ,
:new.COL3 ,
................
:new.COL25 ,
:new.COL40
) ;
elsif updating then
update record_content@wydk
set
COL1 = :new.COL1 ,
COL2 = :new.COL2 ,
COL3 = :new.COL3 ,
COL25 = :new.COL25 ,
COL40 = :new.COL40
where ID = :old.ID;
elsif DELETING then
delete from record_content@wydk
where ID = :old.ID;