当前位置:网站首页>oracle 触发器实现级联更新
oracle 触发器实现级联更新
2022-07-07 12:12:00 【sinat_36789271】
create or replace TRIGGER 触发器名字
AFTER UPDATE OF 更新表的更新列列名a1 ON 更新表表名a
FOR EACH ROW
BEGIN
IF :OLD.更新表的更新列列名a1<>:NEW.更新表的更新列列名a1 THEN
UPDATE 级联更新表表名b SET 级联更新列列名b1=:NEW.更新表的更新列列名a1 WHERE 级联更新列列名b1=:OLD.更新表的更新列列名a1;
END IF;
END;
边栏推荐
- Attribute keywords aliases, calculated, cardinality, ClientName
- 2022-7-7 Leetcode 844. Compare strings with backspace
- c#利用 TCP 协议建立连接
- 带你掌握三层架构(建议收藏)
- Social responsibility · value co creation, Zhongguancun network security and Information Industry Alliance dialogue, wechat entrepreneur Haitai Fangyuan, chairman Mr. Jiang Haizhou
- The difference between memory overflow and memory leak
- Reverse non return to zero code, Manchester code and differential Manchester code of common digital signal coding
- Laravel form builder uses
- 请问,在使用flink sql sink数据到kafka的时候出现执行成功,但是kafka里面没有数
- Vmware 与主机之间传输文件
猜你喜欢
随机推荐
SAKT方法部分介绍
FCOS3D label assignment
GVIM [III] [u vimrc configuration]
Wired network IP address of VMware shared host
Use day JS let time (displayed as minutes, hours, days, months, and so on)
Introduction to database system - Chapter 1 introduction [conceptual model, hierarchical model and three-level mode (external mode, mode, internal mode)]
Supply chain supply and demand estimation - [time series]
mysql ”Invalid use of null value“ 解决方法
THINKPHP框架的优秀开源系统推荐
Vmware共享主机的有线网络IP地址
Vmware 与主机之间传输文件
UML 顺序图(时序图)
wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
属性关键字Aliases,Calculated,Cardinality,ClientName
Social responsibility · value co creation, Zhongguancun network security and Information Industry Alliance dialogue, wechat entrepreneur Haitai Fangyuan, chairman Mr. Jiang Haizhou
Learning breakout 2 - about effective learning methods
[network security] SQL injection syntax summary
Help tenants
Clickhouse (03) how to install and deploy Clickhouse
供应链供需预估-[时间序列]