几百万条数据啊。
那要做索引,不过做一次索引也挺费时间的,
还有sql语句不要用in拉
那要做索引,不过做一次索引也挺费时间的,
还有sql语句不要用in拉
解决方案 »
- oracle管理问题
- 遇到问题:java.sql.SQLException: ORA-01861: 文字与格式字符串不匹配
- Linux下ORACLE数据库开发基础问题,急!
- oracle 生僻字如何解决
- 关于ORACLE DataGuard的问题
- 求sql语句
- Statspack 如何知道一个stats$sqltext中的SQL是什么时候运行的?
- 关于ORACEL的序列问题,急死我了!!!!!!
- PL/SQL两个日期类型直接比较的问题。
- 各位大虾,数据导入的问题。
- 紧急求助(在线等):为什么删除了profile的终止口令,登陆时还是提示口令有效期并要求修改密码?
- 怎么才能把 expdat.dmp 没有警告的成功导入?
create index i_id on test1(id) nologging
create index i_id on test1(id) nologging;alter table test2 cache;delete test1 where exists (select 1 from test2 where test1.id=test2.id);2.
create table temp_t nologging as
select * from test1
where not exists (select 1 from test2 where test1.id=test2.id);truncate table test1;insert /*+ append*/ into test1 select * from temp_t;drop table temp_t;
create index i_id2 on test2(id) nologging
delete from test1 where exists(select 1 from test2 where test1.id = test2.id)