Oracle中将一张表的多个字段更新到另一张表中去
update t_retired_device a
set(a.tag_id, a.sub_tag_id) =
(select b.tag_id,b.sub_tag_id
from t_test bwhere b.device_code =a.device_code)
格式 update 表A set (表A字段) =(select 表B字段(注和表A对应字段)from 表B where 表A.字段=表B.字段)。
查看更详细介绍:http://blog.youkuaiyun.com/luck901229/article/details/8451432
Oracle批量更新字段
本文介绍如何在Oracle数据库中使用更新语句将一张表的多个字段值批量更新到另一张表对应的字段中。通过示例展示了具体的SQL语法及注意事项。
1987





