当前位置:网站首页>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();
边栏推荐
- Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
- Pycharm create a new file and add author information
- [4G/5G/6G专题基础-146]: 6G总体愿景与潜在关键技术白皮书解读-1-总体愿景
- Jenkins+ant+jmeter use
- 细说Mysql MVCC多版本控制
- Loxodonframework quick start
- Serializer & modelserializer of DRF serialization and deserialization
- Yapi test plug-in -- cross request
- asp. How to call vb DLL function in net project
- The use of recycling ideas
猜你喜欢

Data association between two interfaces of postman

Dynamics 365Online ApplicationUser创建方式变更

網易雲微信小程序

Pytest installation (command line installation)

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

JWT certification used in DRF

正则匹配以XXX开头的,XXX结束的

软件建模与分析

iNFTnews | 时尚品牌将以什么方式进入元宇宙?

Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
随机推荐
Connecting mobile phone with ADB
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
信息安全实验四:Ip包监视程序实现
Pick up the premise idea of programming
(3/8) method parameters of improper use of enumeration (2)
**grafana安装**
Record of structured interview
Unity shader (learn more about vertex fragment shaders)
# Arthas 简单使用说明
Unity uses mesh to realize real-time point cloud (I)
網易雲微信小程序
scrapy爬虫mysql,Django等
超十万字_超详细SSM整合实践_手动实现权限管理
The use of recycling ideas
Install pyqt5 and Matplotlib module
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
Postman data driven
Idea development environment installation
Mysql数据库-锁-学习笔记
Pycharm create a new file and add author information