(MS SQL Server)语句:
Sql代码
update b set ClientName = a.name from a,b where a.id = b.id
(Oralce)语句:
Sql代码
update b set (ClientName) = (SELECT name FROM a WHERE b.id = a.id)
标签:sele select div 一个 修改 log upd alc blog
(MS SQL Server)语句:
Sql代码
update b set ClientName = a.name from a,b where a.id = b.id
(Oralce)语句:
Sql代码
update b set (ClientName) = (SELECT name FROM a WHERE b.id = a.id)
标签:sele select div 一个 修改 log upd alc blog
原文地址:https://www.cnblogs.com/hujiapeng/p/8311710.html