当前位置:网站首页>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;
边栏推荐
- Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
- UML sequence diagram (sequence diagram)
- Excuse me, as shown in the figure, the python cloud function prompt uses the pymysql module. What's the matter?
- 566. Reshaping the matrix
- CSMA/CD 载波监听多点接入/碰撞检测协议
- PC端页面如何调用QQ进行在线聊天?
- SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
- 【网络安全】sql注入语法汇总
- postgresql array类型,每一项拼接
- 使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
猜你喜欢
Mathématiques avancées - - chapitre 8 différenciation des fonctions multivariables 1
[fortress machine] what is the difference between cloud fortress machine and ordinary fortress machine?
UML 顺序图(时序图)
Vmware共享主机的有线网络IP地址
高等數學---第八章多元函數微分學1
Redis can only cache? Too out!
2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置
2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
Dry goods | summarize the linkage use of those vulnerability tools
随机推荐
请问指南针股票软件可靠吗?交易股票安全吗?
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
搜索框效果的实现【每日一题】
GVIM [III] [u vimrc configuration]
2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置
Lavarel之环境配置 .env
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
postgresql array类型,每一项拼接
手里的闲钱是炒股票还是买理财产品好?
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
The difference between memory overflow and memory leak
請問,在使用flink sql sink數據到kafka的時候出現執行成功,但是kafka裏面沒有數
The meaning of variables starting with underscores in PHP
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
Interface automation test - solution of data dependency between interfaces
Hands on Teaching: XML modeling
UML sequence diagram (sequence diagram)
How does MySQL control the number of replace?
2022-7-6 beginner redis (I) download, install and run redis under Linux