当前位置:网站首页>触发器: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字段的整行数据删除。
边栏推荐
- JS learning notes - first acquaintance
- [5g NR] RRC connection release
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验2 RGB LED 实验(学习笔记)
- SQL FOREIGN KEY
- End time processing method of wechat v3native payment settings
- Boot connection to impala database
- Tree binary search tree
- Armv8-a programming guide MMU (4)
- Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)
- Traversal before, during and after binary tree
猜你喜欢
[Yu Yue education] reference materials of sensing and intelligent control technology of Nanjing University of Technology
Boot 事务使用
IDEA中设置背景图片(超详细)
What is Amazon keyword index? The consequences of not indexing are serious
The sea of stars hidden behind the nebula graph
如何实现十亿级离线 CSV 导入 Nebula Graph
mysql min() 求某条件下最小的值出现多个结果
Practice of constructing ten billion relationship knowledge map based on Nebula graph
Xpt2046 four wire resistive touch screen
2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time
随机推荐
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals
智联招聘的基于 Nebula Graph 的推荐实践分享
请问怎么在oracle视图中使用stustr函数
Teach you how to build virtual machines locally and deploy microservices
Analysis of the difference between array and linked list
Register as a harmonios developer and install deveco studio 3.0 beta2 for harmonios
原神2.6服务端下载以及搭建安装教程
JS learning notes - operators
dried food! Understand the structural vulnerability of graph convolution networks
Leetcode --- longest public prefix
Everyone Xinfu builds: a one-stop intelligent business credit service platform
注册成为harmonyos开发者并安装DevEco Studio 3.0 Beta2 for HarmonyOS
如何實現十億級離線 CSV 導入 Nebula Graph
After the win10 system is upgraded for a period of time, the memory occupation is too high
Song of cactus - throwing stones to ask the way (3)
仙人掌之歌——投石问路(2)
How to import a billion level offline CSV into Nepal graph
[5g NR] RRC connection release