sqlplus使用copy命令在两个数据库之间更新数据

SQL> help copy 
COPY 
---- 
Copies data from a query to a table in the same or another 
database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2. 
COPY {FROM database | TO database | FROM database TO database} 
            {APPEND|CREATE|INSERT|REPLACE} destination_table 
            [(column, column, column, ...)] USING query 
where database has the following syntax: 
    username[/password]@connect_identifier 
SQL> create table t1 as select * from all_objects where rownum <10; 
表已创建。 
SQL> select count(*) from t1; 
  COUNT(*) 
---------- 
        9 
SQL> copy from scott/oracle@ora to scott/oracle@ora11 create t2 
          using select * from t1 where rownum <5; 
数组提取/绑定大小为 15。(数组大小为 15) 
将在完成时提交。(提交的副本为 0) 
最大 long 大小为 5000。(long 为 5000) 
表 T2 已创建。 
4 行选自 scott@ora。 
  4 行已插入 T2。 
  4 行已提交至 T2 (位于 scott@ora11)。 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值