请问如何实现数据表之间的数据替换 有两张数据表表的结构都是一样的分属于两个数据库但是数据库的版本都是9I请问我能不能把其中一张表的数据导入到另外那张数据表中替换掉那张表里的数据 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假设表table A ,B用B导入A:--清空表A,不可回退truncate table A;--将B插入Ainsert into table A select * from B; 两个数据库可以用imp/exp啊也可以sql loader imp/exp可以只指定导入导出其中一张表的数据吗? 可以啊,里面有个tables参数的可选你在cmd下面,imp help=yexp help=y看一下命令格式就整好了 数据量大的话imp导入现在要导的数据库平台exp user1/passwd file=d:\xx.dmp tables='tablename'在要导入的平台imp user2/passwd file=d:\xx.dmp tables='tablename' fromuser=user1 touser=user2 ignore=y 如果imp和exp使用的用户不相同的话,需要用dba用户导入,指定fromuser和touser参数 数据库频繁地删除数据有什么影响吗 数据字典和动态性能视图 ODAC win7 64位 MySql存储过程的问题 请教各位达人:如何配置Java连接Oracle9i数据库 Update高难问题又来了。!!(跟上次差不多!) 俺的专栏 如何在AIX433上复制ORACLE817数据库?马上送分 关于SQL*PLUS的运行出错 sqlldr导入问题 帮忙写一条SQL语句 同一个表的查询sql语句问题
truncate table A;--将B插入A
insert into table A select * from B;
imp help=y
exp help=y看一下命令格式就整好了
现在要导的数据库平台
exp user1/passwd file=d:\xx.dmp tables='tablename'
在要导入的平台
imp user2/passwd file=d:\xx.dmp tables='tablename' fromuser=user1 touser=user2 ignore=y
需要用dba用户导入,指定fromuser和touser参数