当前位置:网站首页>When updating mysql, the condition is a query
When updating mysql, the condition is a query
2022-07-03 13:24:00 【Vogat meets grapefruit】
scene :
surface A Business unit table
There are business unit name and business unit code .
surface B Application table
It stores its own data and business unit name , Business unit code .
problem : surface B The business unit code in is wrong , Now I want to modify and table A The business unit codes in are consistent . Two tables can be associated by business unit name .
solve :
surface A And table B By business unit name (unit_name) Association as update condition
UPDATE uop_achieve ua,
sys_business_unit sbu
SET ua.unit_code = sbu.unit_code
WHERE
sbu.unit_name = ua.unit_name
边栏推荐
- 双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
- 阿南的疑惑
- Server coding bug
- The reasons why there are so many programming languages in programming internal skills
- 刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
- Logback 日志框架
- PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
- [colab] [7 methods of using external data]
- Convolution emotion analysis task4
- 8皇后问题
猜你喜欢
[email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g"/>
Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
剑指 Offer 12. 矩阵中的路径
Can newly graduated European college students get an offer from a major Internet company in the United States?
106. 如何提高 SAP UI5 应用路由 url 的可读性
February 14, 2022, incluxdb survey - mind map
显卡缺货终于到头了:4000多块可得3070Ti,比原价便宜2000块拿下3090Ti
The principle of human voice transformer
常见的几种最优化方法Matlab原理和深度分析
已解决(机器学习中查看数据信息报错)AttributeError: target_names
Flink SQL knows why (19): the transformation between table and datastream (with source code)
随机推荐
Annotation and reflection
Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
Kivy tutorial how to automatically load kV files
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
February 14, 2022, incluxdb survey - mind map
Reptile
Will Huawei be the next one to fall
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
MyCms 自媒体商城 v3.4.1 发布,使用手册更新
The R language GT package and gtextras package gracefully and beautifully display tabular data: nflreadr package and gt of gtextras package_ plt_ The winloss function visualizes the win / loss values
2022-01-27 redis cluster brain crack problem analysis
Finite State Machine FSM
Task6: using transformer for emotion analysis
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
显卡缺货终于到头了:4000多块可得3070Ti,比原价便宜2000块拿下3090Ti
The principle of human voice transformer
2022-02-13 plan for next week
开始报名丨CCF C³[email protected]奇安信:透视俄乌网络战 —— 网络空间基础设施面临的安全对抗与制裁博弈...
R语言使用data函数获取当前R环境可用的示例数据集:获取datasets包中的所有示例数据集、获取所有包的数据集、获取特定包的数据集