当前位置:网站首页>MySQL inserts three tables with different values. The association condition is the primary foreign key. How about the syntax of the insertion statement?
MySQL inserts three tables with different values. The association condition is the primary foreign key. How about the syntax of the insertion statement?
2022-07-25 20:39:00 【aisql】
mysql Insert different values in three tables , The association condition is the primary foreign key , How about the syntax of the insert statement ?
Take the answer 1:
insert into tablename(…)
select … from a
inner join b on a.id = b.id
inner join c on b.id = c.id
Do you mean this? ?
Other answers 1:
insert into tablename(…)
select … from a
inner join b on a.id = b.id
inner join c on b.id = c.id
Do you mean this? ?
Other answers 2:
You can use transactions to operate , Do you think this can meet your needs
边栏推荐
- Do you still have certificates to participate in the open source community?
- 【ONNX】pytorch模型导出成ONNX格式:支持多参数与动态输入
- 移动web布局方法
- leetcode-6126:设计食物评分系统
- [today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
- [today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
- [advanced mathematics] [8] differential equation
- Online random coin tossing positive and negative statistical tool
- Formatdatetime explanation [easy to understand]
- Leetcode-146: LRU cache
猜你喜欢
![[matlab] download originality documents based on oil monkey script and MATLAB](/img/c2/1788b758778ba73dd02fb0d006869e.png)
[matlab] download originality documents based on oil monkey script and MATLAB
![[paper reading] unpaired image to image translation using cycle consistent advantageous networks](/img/73/69651dd8ecfdddd1cae13a1d223d51.png)
[paper reading] unpaired image to image translation using cycle consistent advantageous networks

leetcode-6125:相等行列对

JMeter - interface test

leetcode-79:单词搜索

Has baozi ever played in the multi merchant system?
![[advanced mathematics] [3] Application of differential mean value theorem and derivative](/img/a9/3b024dbbb201bee4eed6c9f6ce3001.png)
[advanced mathematics] [3] Application of differential mean value theorem and derivative
![Vulnhub | dc: 5 | [actual combat]](/img/c6/34117bbfb83ebdf9e619f4e4590661.png)
Vulnhub | dc: 5 | [actual combat]
![[leetcode] 28. Implement strstr ()](/img/87/0af2da458e53d31012d6535cc132bb.png)
[leetcode] 28. Implement strstr ()

How to use buffer queue to realize high concurrent order business (glory Collection Edition)
随机推荐
Introduction to several scenarios involving programming operation of Excel in SAP implementation project
Remote - basic principle introduction
Working principle of radar water level gauge and precautions for installation and maintenance
Cloud native guide: what is cloud native infrastructure
Why did I choose to become a network engineer after graduating from weak current for 3 months
leetcode-6131:不可能得到的最短骰子序列
[today in history] July 7: release of C; Chrome OS came out; "Legend of swordsman" issued
JS作用域与作用域链
Formatdatetime explanation [easy to understand]
7.23
Detailed explanation of document operation
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
Google guava is just a brother. What is the real king of caching? (glory Collection Edition)
RF, gbdt, xgboost feature selection methods "recommended collection"
Proxy implements MySQL read / write separation
预处理指令
[advanced mathematics] [8] differential equation
【ONNX】pytorch模型导出成ONNX格式:支持多参数与动态输入
[advanced mathematics] [1] function, limit, continuity
Solution to oom exceptions caused by improper use of multithreading in production environment (supreme Collection Edition)