背景
前提
使用
update tableA A set A.val = (select val from tableB B where A.idd = B.idd);
扩展
update tableA A set A.val =select C.val from (select B.val as val,B.idd as idd from tableA B where A.idd=B.idd) C where A.idd=C.idd;
Oracle SQL——如何用一个表的数据更新另一个表中的数据
原文:https://www.cnblogs.com/zuiyue_jing/p/11839472.html