针对一张表,只要有操作(不论增、删、改)我就需要备份到新的数据库,这样的应该怎么设计,请大家帮我解答一下吧,谢谢
create table emp1 select * from emp where 1=2; create or replace trigger tri_operation_dml after insert or delete or update on emp for each row begin insert into emp1(ename) select case when :old.ename is null then :new.ename else :old.ename end from dual; end;