当前位置:网站首页>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();
边栏推荐
- Information Security Experiment 3: the use of PGP email encryption software
- 12、 Sort
- 嵌套(多级)childrn路由,query参数,命名路由,replace属性,路由的props配置,路由的params参数
- [SVN] what is SVN? How do you use it?
- Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
- 信息安全实验一:DES加密算法的实现
- 【BW16 应用篇】安信可BW16模组/开发板AT指令实现MQTT通讯
- 细说Mysql MVCC多版本控制
- Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
- SiteMesh getting started example
猜你喜欢
![Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]](/img/5f/a3e7ed3617f1fec024eaba086ddd2a.jpg)
Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]

Postman interface debugging method

How to use clipboard JS library implements copy and cut function

Information Security Experiment 1: implementation of DES encryption algorithm

Yapi test plug-in -- cross request

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

Loxodonframework quick start

Jmeters use

Binary tree high frequency question type

JS逆向教程第一发
随机推荐
消费互联网的产业链其实是很短的,它仅仅承接平台上下游的对接和撮合的角色
LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
Record of structured interview
When inputting an expression in the input box, an error is reported: incorrect string value:'\xf0\x9f... ' for column 'XXX' at row 1
Binary tree high frequency question type
(3/8) method parameters of improper use of enumeration (2)
shake数据库中怎么使用Mongo-shake实现MongoDB的双向同步啊?
Vs2013 generate solutions super slow solutions
DRF authentication, permissions, and flow restrictions (only for views in DRF)
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Jenkins task grouping
Jenkins+ant+jmeter use
印象笔记终于支持默认markdown预览模式
Difference between process and thread
Information Security Experiment 2: using x-scanner scanning tool
[cloud native] Devops (I): introduction to Devops and use of code tool
liunx命令
细说Mysql MVCC多版本控制
MySql数据库-索引-学习笔记
创建一个长度为6的int型数组,要求数组元素的值都在1-30之间,且是随机赋值。同时,要求元素的值各不相同。