亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

原始表emp與備份表emp_c的同步

原始表emp與備份表emp_c的同步

睿智狂人 2016-01-27 14:25:18
--原始表emp與備份表emp_c的同步 create?or?replace?trigger?bfemp01 after?update?or?delete?or?insert on?emp for?each?row declare begin ?if?updating?then ??update?emp_c?set?emp_sal_?=?:new.emp_sal_,TABLE_STATE_='update',DATA_VERSION=DATA_VERSION+1 ??where?emp_id_?=?:old.emp_id_; ??dbms_output.put_line('更新成功!'); ?end?if; ?if?deleting?then ??delete?from?emp_c?where?emp_id_=?:old.emp_id_; ??dbms_output.put_line('刪除成功!'); ?end?if; ?if?inserting?then ??insert?into?emp_c?values(:new.dept_id_,:new.dept_name_, ??:new.emp_id_,:new.emp_name_,:new.emp_sex_,:new.emp_sal_, ??:new.emp_comm_,:new.emp_posi_,'insert',0); ??dbms_output.put_line('新增成功!'); ?end?if; end; /
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 1565 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號