当前位置:网站首页>PostgreSQL创建触发器的时候报错,
PostgreSQL创建触发器的时候报错,
2022-07-07 07:01:00 【CSDN问答】
CREATE FUNCTION jins_xfupdate_func() RETURNS TRIGGER AS
$$
DECLARE
BEGIN
IF NEW.js_成绩01>=60 AND OLD. js_成绩01<60 THEN
UPDATE "jins_学生01" set js_已修学分总数01= js_已修学分总数01+(SELECT js_学分01 FROM "jins_课程01" WHERE js_课程编号01=NEW.js_课程编号01)
WHERE "jins_学生01".js_学号01=NEW. js_学号01;
RETURN NEW;
ELSE RETURN NULL;
END IF;
END
$$LANGUAGE PLPGSQL;
CREATE TRIGGER jins_TG学分统计 trigger
AFTER UPDATE ON jins_学习01"
FOR EACH ROW
EXECUTE PROCEDURE jins_xfupdate_func();
边栏推荐
- STM32 and motor development (from stand-alone version to Networking)
- Huawei HCIP - datacom - Core 03 jours
- 软件建模与分析
- Final keyword
- Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
- Unity uses mesh to realize real-time point cloud (II)
- Variable parameter of variable length function
- CMD startup software passes in parameters with spaces
- Mysql database lock learning notes
- Dynamics 365online applicationuser creation method change
猜你喜欢

MySql数据库-索引-学习笔记

NATAPP内网穿透

JWT certification used in DRF
![[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力](/img/21/6a183e4e10daed90c66235bdbdc3bf.png)
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力

其实特简单,教你轻松实现酷炫的数据可视化大屏

JMeter JDBC batch references data as input parameters (the simplest method for the whole website)

In fact, it's very simple. It teaches you to easily realize the cool data visualization big screen

Confitest of fixture py

Unity shader (basic concept)

Implementation of corner badge of Youmeng message push
随机推荐
Add new item after the outbound delivery order of SAP mm sto document is created?
Postman data driven
沙龙预告|GameFi 领域的瓶颈和解决方案
进程和线程的区别
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
Regular matching starts with XXX and ends with XXX
Variable parameter of variable length function
浏览器中如何让视频倍速播放
如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Run can start normally, and debug doesn't start or report an error, which seems to be stuck
Unittest simple project
Leetcode daily questions (2316. count unreachable pairs of nodes in an undirected graph)
IIS faked death this morning, various troubleshooting, has been solved
Huawei HCIP - datacom - Core 03 jours
4、 Fundamentals of machine learning
Self awakening from a 30-year-old female programmer
Unity uses mesh to realize real-time point cloud (I)
Kubernetes cluster capacity expansion to add node nodes