随笔分类 - Oracle
摘要:接下来我们说说“涵盖索引”和include索引。所谓的涵盖索引,就是传统方式在多个列上创建的索引。“inlude索引”是SQL2k5提供的新功能,允许添加非键列到非聚集索引的叶节点上。创建涵盖索引:createindexix_tb_col1_col2ontb(col1,col2)创建include索引:createindexix_tb_col1ontb(col1)include(col2,col3,col4)涵盖索引和include索引的区别在于,涵盖索引的所有列都是键列,索引行的物理存储顺序就是col1、col2的顺序,这也是误区6之所以称为误区的原因。涵盖索引可以是聚集索引,也可以是非聚集
阅读全文
摘要:在9i上执行的操作 查询test表中记录select * from test;删除test表中记录delete from test;获得过去的会话exec dbms_flashback.disable;查询出3分钟前这个test表的情况select * from test as of timesta
阅读全文
摘要:在9i上执行的操作查询test表中记录select * from test;删除test表中记录delete from test;获得过去的会话exec dbms_flashback.disable;查询出3分钟前这个test表的情况select * from test as of timestamp(systimestamp - interval '3' minute );将查出的记录插入到误删除数据的表中insert into test select * from test as of timestamp(systimestamp - interval '30
阅读全文

浙公网安备 33010602011771号