当前位置:网站首页>触发器: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字段的整行数据删除。


边栏推荐
- Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
- Song of cactus - throwing stones to ask the way (3)
- JS learning notes - first acquaintance
- /Bin/ld: cannot find -lxml2
- Leetcode -- number of palindromes
- JS learning notes - process control
- Route service grid traffic through two-level gateway design
- Xpt2046 four wire resistive touch screen
- The light of ideal never dies
- day4
猜你喜欢
![OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation](/img/8b/36be3191a7d71f4a8c8181eaed8417.jpg)
OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation

Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals

通过两级网关设计来路由服务网格流量

基于 Nebula Graph 构建百亿关系知识图谱实践

结构体的内存对齐

GraphX 图计算实践之模式匹配抽取特定子图

Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points

2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time

MySQL calculates the data within the longitude and latitude range

微信v3native支付设置的结束时间处理办法
随机推荐
【5G NR】RRC连接释放
/Bin/ld: cannot find -lxslt
Source code look me
GraphX 图计算实践之模式匹配抽取特定子图
Leetcode -- number of palindromes
Pattern matching extraction of specific subgraphs in graphx graph Computing Practice
Application of visualization technology in Nebula graph
[5g NR] RRC connection release
IDEA中设置背景图片(超详细)
Idea public method extraction shortcut key
beforeEach
[solution] educational codeforces round 82
Boot transaction usage
Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
After the win10 system is upgraded for a period of time, the memory occupation is too high
Digital collection system development (program development) - Digital Collection 3D modeling economic model system development source code
Pyinstaller's method of packaging pictures attached to exe
Boot 中bean配置覆盖
Everyone Xinfu builds: a one-stop intelligent business credit service platform
Construction and business practice of Zhongke brain knowledge map platform