首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > PowerDesigner >

-更新备份端remoteemp update remoteemp set sal=:new.sal where empno=:new.empno

2013-01-28 
--更新备份端remoteempupdate remoteemp set sal:new.sal where empno:new.empno数据的备份和同步在主

--更新备份端remoteemp update remoteemp set sal=:new.sal where empno=:new.empno;
数据的备份和同步


在主数据库上,给员工涨工资,新的工资拷贝到备份端


create or replace trigger syncsal
after update
on emp
begin


    --更新备份端remoteemp
    update remoteemp set sal=:new.sal where empno=:new.empno;


end;
/

热点排行