create table t1 as select distinct id from t_src;create table t1 as select id from t_src;
create index i_t1 on t1(id);
delete from t1 a where rowid > (select min(rowid) from t1 where id = a.id);create table t1 as select id from t_src;
delete from t1 a where rowid > (select min(rowid) from t1 where id = a.id);
create index i_t1 on t1(id);以上三种方法对于超大型数据表,那种速度会最快呢?特别是2、3种,到底是先创建索引好还是后创建呢?
create index i_t1 on t1(id);
delete from t1 a where rowid > (select min(rowid) from t1 where id = a.id);create table t1 as select id from t_src;
delete from t1 a where rowid > (select min(rowid) from t1 where id = a.id);
create index i_t1 on t1(id);以上三种方法对于超大型数据表,那种速度会最快呢?特别是2、3种,到底是先创建索引好还是后创建呢?
解决方案 »
- 请教,往数据库中插入记录某张表速度很慢,而且越来越慢是何原因
- Linux 64x oracle 9i安装出错
- 一个简单的sql语句执行结果的困惑
- oracle10g存储过程和函数的创建格式
- 登录问题
- 我有aq_administrator_role,connect,dba角色和 administrator database trigger,create any trigger,create trigger,sysdba ,sysoper系统
- 存储过程的问题————help me!
- Oracle中导数据的问题!
- 有无比count执行效率高的汇总语句?
- 基于solaris8安装oracle817的问题
- oracle关于long raw的存储
- 请问:hibernate里的session如何正确关闭
如果id有索引,第3种比第2种块,因为不用维护索引。