当前位置:网站首页>触发器: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字段的整行数据删除。
边栏推荐
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation
- Introduction to database system Chapter 1 short answer questions - how was the final exam?
- 数据库系统概论第一章简答题-期末考得怎么样?
- idea jar包冲突排查
- The difference and usage of calloc, malloc and realloc functions
- 智联招聘的基于 Nebula Graph 的推荐实践分享
- Solve the problem of base64encoder error
- Route service grid traffic through two-level gateway design
- Nebula Graph & 数仓血缘关系数据的存储与读写
猜你喜欢
Another graduation season
The light of ideal never dies
Recommended practice sharing of Zhilian recruitment based on Nebula graph
Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)
Ant group's large-scale map computing system tugraph passed the national evaluation
OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
Mobile web development learning notes - Layout
Boot 事务使用
如何实现十亿级离线 CSV 导入 Nebula Graph
请问怎么在oracle视图中使用stustr函数
随机推荐
Armv8-a programming guide MMU (4)
Pattern matching extraction of specific subgraphs in graphx graph Computing Practice
HMS core machine learning service helps zaful users to shop conveniently
[idea] recommend an idea translation plug-in: translation "suggestions collection"
Best practices for building multi architecture images
Boot 事务使用
Solve * * warning * *: your ApplicationContext is unlikely to start due to a @componentscan of the defau
Moveit obstacle avoidance path planning demo
What are the necessary functions of short video app development?
Memory alignment of structure
SQLServer查询哪些索引利用率低
图数据库|Nebula Graph v3.1.0 性能报告
Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
[solution] educational codeforces round 82
源码look me
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
Conditions and solutions of deadlock
Effectively use keywords to increase Amazon sales
[Yu Yue education] reference materials of sensing and intelligent control technology of Nanjing University of Technology
华为云服务器安装mysqlb for mysqld.service failed because the control process exited with error code.See “sys