当前位置:网站首页>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
边栏推荐
- Leetcode-6125: equal row and column pairs
- [advanced mathematics] [4] indefinite integral
- Google guava is just a brother. What is the real king of caching? (glory Collection Edition)
- Open source SPL enhances mangodb computing
- Link list of sword finger offer question bank summary (III) (C language version)
- Web crawler principle analysis "suggestions collection"
- Cloud native guide: what is cloud native infrastructure
- [today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
- Has baozi ever played in the multi merchant system?
- 【TensorRT】动态batch进行推理
猜你喜欢

Online XML to JSON tool

Leetcode customs clearance: hash table six, this is really a little simple

Introduction to several scenarios involving programming operation of Excel in SAP implementation project

Myormframeworkjdbc review and problem analysis of user-defined persistence layer framework, and thought analysis of user-defined persistence layer framework

Key network protocols in tcp/ip four layer model

Working principle of radar water level gauge and precautions for installation and maintenance

Brush questions with binary tree (4)
![[advanced mathematics] [8] differential equation](/img/83/b6b07540e3cf6d6433e57447d42ee9.png)
[advanced mathematics] [8] differential equation

Fanoutexchange switch code tutorial

Unity VS—— VS中默认调试为启动而不是附加到Unity调试
随机推荐
RF, gbdt, xgboost feature selection methods "recommended collection"
Introduction to several scenarios involving programming operation of Excel in SAP implementation project
Interpretation of filter execution sequence source code in sprigboot
Vulnhub | dc: 5 | [actual combat]
网络协议:TCP Part2
Vulnhub | dc: 6 | [actual combat]
【TensorRT】动态batch进行推理
leetcode-6127:优质数对的数目
Learn FPGA from the bottom structure (16) -- customization and testing of pll/mmcm IP
C language file reading and writing
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference
Remote - basic principle introduction
Key network protocols in tcp/ip four layer model
预处理指令
Working principle of radar water level gauge and precautions for installation and maintenance
雷达水位计的工作原理及安装维护注意事项
Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!
Brush questions with binary tree (4)
matlab----EEGLab查看脑电信号
Volcanic engine Xiang Liang: machine learning and intelligent recommendation platform multi cloud deployment solution officially released