当前位置:网站首页>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
边栏推荐
猜你喜欢
truffle
Will we still need browsers in the future?(feat. Maple words Maple language)
Security software Avast and Symantec NortonLifeLock merge with UK approval, market value soars 43%
NebulaGraph v3.2.0 Release Note,对查询最短路径的性能等多处优化
[Cultivation of internal skills of string functions] strncpy + strncat + strncmp (2)
4-《PyTorch深度学习实践》-反向传播
Pytorch分布式训练/多卡/多GPU训练DDP的torch.distributed.launch和torchrun
一点点读懂cpufreq(二)
Literature reading ten - Detect Rumors on Twitter by Promoting Information Campaigns with Generative Adversarial Learn
如何根据地址获取函数名
随机推荐
Linear DP (bottom)
从单体架构迁移到 CQRS 后,我觉得 DDD 并不可怕
Laravel 实现redis分布式锁
对“为什么一些程序员很傲慢”的解读
Day118. Shangyitong: order list, details, payment
注解@EnableAutoConfiguration的作用以及如何使用
@Import注解的作用以及如何使用
为何越来越多人选择进入软件测试行业?深度剖析软件测试的优势...
MySQL的安装与卸载
node中package解析、npm 命令行npm详解,node中的common模块化,npm、nrm两种方式查看源和切换镜像
Day118.尚医通:订单列表、详情、支付
365天深度学习训练营-学习线路
[QNX Hypervisor 2.2用户手册]10.4 vdev hpet
PAN3020 Sub-1G无线收发芯片
线性DP(下)
直接插入排序
Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
测试技术:关于上下文驱动测试的总结
typeScript-promise
web3.js