从a数据库的i表,倒数据到b数据库j表,那个语句怎么写的
解决方案 »
- 不解的现象:批量更新某字段后,查询的where中包含此字段则非常缓慢
- 急!不小心卸载oracle,但是控制文件,数据文件都在,怎样才能恢复呀?
- !!!根据输入参数返回分区名称!!!
- 寻求一个动态查询SQL语句
- 有挑战问题:怎么取某个字符前面的数字
- sql中的笛卡尔积问题
- 在线等,oracle查询速度太慢太慢,请各位大哥帮忙(分数不多,实在是因为没分了)。
- 查询时出现,尤其是用order by 时?请问这是什么问题,如何解决??在线等ing?
- 一个具有导出功能的用户,其拥有的最小权限是什么?
- ora-12638:凭证检索失败的解决办法?
- 请教:服务起不来有什么关系?
- exp命令如何只导出表格和序列?
或者使用PL/SQL将数据导出到Excel,然后直接从Excel里面复制粘贴到J表就可以了
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> drop table t1;
表已删除。
SQL> drop table t2;
表已删除。
SQL> create table t1 as select * from all_objects where rownum<10;
表已创建。
SQL> select count(*) from t1;
COUNT(*)
----------
9
SQL> copy from scott/oracle@ora11 to scott/oracle@ora11 create t2
using select * from t1 where rownum<5;
数组提取/绑定大小为 15。(数组大小为 15)
将在完成时提交。(提交的副本为 0)
最大 long 大小为 5000。(long 为 5000)
表 T2 已创建。
4 行选自 scott@ora11。
4 行已插入 T2。
4 行已提交至 T2 (位于 scott@ora11)。
SQL> select count(*) from t2;
COUNT(*)
----------
4
SQL>