从A表更新数据到B表

来源:互联网 发布:淘宝店铺出租安全吗 编辑:程序博客网 时间:2024/04/29 22:42
update (select t.Report_3code as a, b.Report_3code as b
          from Branch@REMOTE_RUN t, branch b
         where b.branch_code = t.branch_code)
   set b = a
将A表中的Report_3code字段更新到B表中。
注意:此处一定要使用别名,否则会出错。

select utl_inaddr.get_host_address, utl_inaddr.get_host_name from dual
查询数据库的IP地址。