Oracle怎样将一张表的多个字段更新到另一张表中去

来源:互联网 发布:我想做淘宝怎么弄 编辑:程序博客网 时间:2024/05/29 06:30

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 b

where b.device_code =a.device_code)

格式 update 表A  set (表A字段) =(select 表B字段(注和表A对应字段)from 表B where 表A.字段=表B.字段)。

查看更详细介绍:http://blog.csdn.net/luck901229/article/details/8451432

阅读全文
1 0
原创粉丝点击