当前位置:网站首页>PostgreSQL reports an error when creating a trigger,
PostgreSQL reports an error when creating a trigger,
2022-07-07 09:39:00 【CSDN Q & A】
CREATE FUNCTION jins_xfupdate_func() RETURNS TRIGGER AS
$$
DECLARE
BEGIN
IF NEW.js_ achievement 01>=60 AND OLD. js_ achievement 01<60 THEN
UPDATE "jins_ Student 01" set js_ Total credits completed 01= js_ Total credits completed 01+(SELECT js_ credits 01 FROM "jins_ Course 01" WHERE js_ Course number 01=NEW.js_ Course number 01)
WHERE "jins_ Student 01".js_ Student number 01=NEW. js_ Student number 01;
RETURN NEW;
ELSE RETURN NULL;
END IF;
END
$$LANGUAGE PLPGSQL;
CREATE TRIGGER jins_TG Credit statistics trigger
AFTER UPDATE ON jins_ Study 01"
FOR EACH ROW
EXECUTE PROCEDURE jins_xfupdate_func();
边栏推荐
- Vs2013 generate solutions super slow solutions
- Communication mode between processes
- Unity shader (learn more about vertex fragment shaders)
- 華為HCIP-DATACOM-Core_03day
- Impression notes finally support the default markdown preview mode
- PLC信号处理系列之开关量信号防抖FB
- Colorbar of using vertexehelper to customize controls (II)
- Unity shader (basic concept)
- 【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本
- ViewPager2和VIewPager的區別以及ViewPager2實現輪播圖
猜你喜欢
![[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction](/img/7f/d0917366c68865222154d82b9e7b40.png)
[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction

網易雲微信小程序

Jenkins+ant+jmeter use

Network request process

四、机器学习基础

stm32和电机开发(从单机版到网络化)

信息安全实验二 :使用X-SCANNER扫描工具

First issue of JS reverse tutorial

Unity uses mesh to realize real-time point cloud (I)

章鱼未来之星获得25万美金奖励|章鱼加速器2022夏季创业营圆满落幕
随机推荐
Information Security Experiment 3: the use of PGP email encryption software
信息安全实验一:DES加密算法的实现
Netease cloud wechat applet
golang select机制和超时问题怎么解决
Difference between interface iterator and iteratable
NATAPP内网穿透
Mysql database transaction learning notes
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
[4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
Pick up the premise idea of programming
第一讲:寻找矩阵的极小值
SAP MM STO单据的外向交货单创建后新加ITEM?
[SVN] what is SVN? How do you use it?
其实特简单,教你轻松实现酷炫的数据可视化大屏
Octopus future star won a reward of 250000 US dollars | Octopus accelerator 2022 summer entrepreneurship camp came to a successful conclusion
Jenkins modifies the system time
Jmeters use
The difference between viewpager2 and viewpager and the implementation of viewpager2 in the rotation chart
csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
Create an int type array with a length of 6. The values of the array elements are required to be between 1-30 and are assigned randomly. At the same time, the values of the required elements are diffe