当前位置:网站首页>触发器:Mysql实现一张表添加或删除一条数据,另一张表同时添加
触发器:Mysql实现一张表添加或删除一条数据,另一张表同时添加
2022-07-02 12:43:00 【CSDN问答】
创建一个触发器,当表student_message开始添加stu_id,id_time字段的数据,表student_score的stu_id,id_time字段的数据也跟着加,如果表student_message某行都删除了,表student_score也跟着表student_message相应的stu_id,id_time字段的整行数据删除。


边栏推荐
- Summary of multithreading and thread synchronization knowledge
- beforeEach
- How to import a billion level offline CSV into Nepal graph
- win10系统升级一段时间后,内存占用过高
- 【题解】Educational Codeforces Round 82
- Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
- /Bin/ld: cannot find -lgssapi_ krb5
- Maui学习之路(三)--Winui3深入探讨
- Analysis of the difference between array and linked list
- (practice C language every day) the sum of the nearest three numbers
猜你喜欢

Vscode设置标签页多行显示

Teach you how to build virtual machines locally and deploy microservices

Ant group's large-scale map computing system tugraph passed the national evaluation

Another graduation season

Write your own CPU Chapter 11 - learning notes

Aiko ai Frontier promotion (7.2)

Traversal before, during and after binary tree

Boot transaction usage

Aike AI frontier promotion (7.2)

原神2.6服务端下载以及搭建安装教程
随机推荐
2022最新最详细必成功的在Vscode中设置背景图、同时解决不受支持的问题
Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points
day4
Boot 连接 Impala数据库
注册成为harmonyos开发者并安装DevEco Studio 3.0 Beta2 for HarmonyOS
SQL FOREIGN KEY
Moveit obstacle avoidance path planning demo
多数据源配置代码
Register as a harmonios developer and install deveco studio 3.0 beta2 for harmonios
Another graduation season
基于 Nebula Graph 构建百亿关系知识图谱实践
Song of cactus - throwing stones to ask the way (2)
IDEA中设置背景图片(超详细)
Vscade set multi line display of tab
mysql 计算经纬度范围内的数据
2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time
JS learning notes - first acquaintance
Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
idea jar包冲突排查
构建多架构镜像的最佳实践