当前位置:网站首页>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
边栏推荐
猜你喜欢

407. 接雨水 II

堪称奔驰“理财产品”,空间媲美宝马X5,采用了非常运动的外观

Community Sharing|Tencent Overseas Games builds game security operation capabilities based on JumpServer

KT148A语音芯片怎么烧录语音进入芯片里面通过串口和电脑端的工具

Since a new byte of 20K came out, I have seen what the ceiling is

Implementing class target method exception using proxy object execution

Flutter启动流程(Skia引擎)介绍与使用

资深游戏建模师告知新手,游戏场景建模师必备软件有哪些?

一点点读懂cpufreq(二)

Nuclei(二)进阶——深入理解workflows、Matchers和Extractors
随机推荐
【CVA估值训练营】财务建模指南——第一讲
线程三连鞭之“线程的状态”
Implementing class target method exception using proxy object execution
使用代理对象执行实现类目标方法异常
【字符串函数内功修炼】strcpy + strcat + strcmp(一)
2022年华数杯数学建模
Security software Avast and Symantec NortonLifeLock merge with UK approval, market value soars 43%
typeScript-闭包函数的使用
隐私计算综述
Go 编程语言(简介)
KT148A语音芯片ic工作原理以及芯片的内部架构描述
Community Sharing|Tencent Overseas Games builds game security operation capabilities based on JumpServer
Go 语言快速入门指南:什么是 TSL 安全传输层
堪称奔驰“理财产品”,空间媲美宝马X5,采用了非常运动的外观
Ab3d.PowerToys and Ab3d.DXEngine Crack
再肝3天,整理了90个 NumPy 例子,不能不收藏!
上课笔记(6)(2)——#742. 周末舞会
truffle
ClickHouse 二级索引
[Cultivation of internal skills of string functions] strlen + strstr + strtok + strerror (3)