当前位置:网站首页>Cascading update with Oracle trigger

Cascading update with Oracle trigger

2022-07-07 14:14:00 sinat_ thirty-six million seven hundred and eighty-nine thousan

create or replace TRIGGER  Trigger name 
AFTER UPDATE OF  Update column name of the update table a1 ON  Update table name a
FOR EACH ROW
BEGIN
  IF :OLD. Update column name of the update table a1<>:NEW. Update column name of the update table a1 THEN
    UPDATE  Cascade update table name b SET  Cascade update column name b1=:NEW. Update column name of the update table a1 WHERE  Cascade update column name b1=:OLD. Update column name of the update table a1;
  END IF;
END;

 

原网站

版权声明
本文为[sinat_ thirty-six million seven hundred and eighty-nine thousan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071212223175.html