当前位置:网站首页>SQL关联表更新
SQL关联表更新
2022-08-04 23:36:00 【 时光清浅ぴ许你安然】
存在表数据:per_user、per_emp_info

需要将per_emp_info 中的name和post_name更新到per_user表中
mysql数据库
update per_user u
JOIN per_emp_info e on u.emp_info_id = e.id
set u.emp_name = e.name,u.post_name = e.post_name
sqlserver
update per_user
set emp_name = e.name,post_name = e.post_name
from per_user u JOIN per_emp_info e on u.emp_info_id = e.id
边栏推荐
- Go 编程语言(简介)
- 仪表板展示 | DataEase看中国:数据呈现中国资本市场
- 2022年华数杯数学建模
- Since a new byte of 20K came out, I have seen what the ceiling is
- OpenCV:10特征检测
- Ab3d.PowerToys and Ab3d.DXEngine Crack
- uniapp horizontal tab (horizontal scrolling navigation bar) effect demo (organization)
- Vscode连接远程服务器(一套配置成功)
- 【无标题】线程三连鞭之“线程池”
- 再肝3天,整理了90个 NumPy 例子,不能不收藏!
猜你喜欢

从单体架构迁移到 CQRS 后,我觉得 DDD 并不可怕

Ab3d.PowerToys and Ab3d.DXEngine Crack

加解密在线工具和进制转化在线工具
![[Happy Qixi Festival] How does Nacos realize the service registration function?](/img/df/5793145da45bc80d227b0babfac914.png)
[Happy Qixi Festival] How does Nacos realize the service registration function?

C5750X7R2E105K230KA(电容器)MSP430F5249IRGCR微控制器资料

未上市就“一举成名”,空间媲美途昂,安全、舒适一个不落

年薪50W+的测试工程师都在用这个:Jmeter 脚本开发之——扩展函数

Literature reading ten - Detect Rumors on Twitter by Promoting Information Campaigns with Generative Adversarial Learn

4 - "PyTorch Deep Learning Practice" - Backpropagation

Nuclei (2) Advanced - In-depth understanding of workflows, Matchers and Extractors
随机推荐
功耗控制之DVFS介绍
4 - "PyTorch Deep Learning Practice" - Backpropagation
kernel hung_task死锁检测机制原理实现
d枚举生成位
The Go Programming Language (Introduction)
Laravel 实现redis分布式锁
Pytest learning - fixtures
2022年华数杯数学建模
一点点读懂thermal(一)
美团二面:Redis与MySQL双写一致性如何保证?
文献阅读十——Detect Rumors on Twitter by Promoting Information Campaigns with Generative Adversarial Learn
Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
Go 编程语言(简介)
学生管理系统架构设计
一点点读懂regulator(三)
对“为什么一些程序员很傲慢”的解读
PZK学C语言之字符串函数(一)
Since a new byte of 20K came out, I have seen what the ceiling is
MySQL的安装与卸载
TypeScript - the use of closure functions