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


边栏推荐
- Astra: could not open "2bc5/ [email protected] /6“: Failed to set USB interface
- Fiddler realizes mobile packet capturing - getting started
- /Bin/ld: cannot find -lxslt
- Sqlserver queries which indexes are underutilized
- 数据库系统概论第一章简答题-期末考得怎么样?
- Solve the problem of base64encoder error
- Bean configuration override in boot
- 源码look me
- Boot 事务使用
- 死锁的条件及解决方法
猜你喜欢

潘多拉 IOT 开发板学习(RT-Thread)—— 实验2 RGB LED 实验(学习笔记)

Introduction to Dynamic Planning II (5.647.62)

The light of ideal never dies

Armv8-a programming guide MMU (4)

What is Amazon keyword index? The consequences of not indexing are serious

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

微信v3native支付设置的结束时间处理办法

处理gzip: stdin: not in gzip formattar: Child returned status 1tar: Error is not recoverable: exitin

The sea of stars hidden behind the nebula graph

win10系统升级一段时间后,内存占用过高
随机推荐
SQL FOREIGN KEY
Moveit obstacle avoidance path planning demo
2022最新最详细必成功的在Vscode中设置背景图、同时解决不受支持的问题
win10系统升级一段时间后,内存占用过高
idea jar包冲突排查
Remove the underline in router link
如何實現十億級離線 CSV 導入 Nebula Graph
/Bin/ld: cannot find -lcrypto
Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
The light of ideal never dies
AWS virtual machine expansion
Boot transaction usage
[solution] educational codeforces round 82
Group by的用法
【题解】Educational Codeforces Round 82
Figure database | Nepal graph v3.1.0 performance report
Various entanglements between qvariant and Jason -- QT
Idea public method extraction shortcut key
The sea of stars hidden behind the nebula graph
HMS core machine learning service helps zaful users to shop conveniently