Oracle之索引耗费性能

来源:互联网 发布:js实现的字幕滚动 编辑:程序博客网 时间:2024/06/08 13:21
set linesize 266
drop table t purge;
create table t as select * from dba_objects;


select t1.name, t1.STATISTIC#, t2.VALUE
  from v$statname t1, v$mystat t2
 where t1.STATISTIC# = t2.STATISTIC#
   and t1.name like '%sort%';


create index idx_object_id on t(object_id);


select t1.name, t1.STATISTIC#, t2.VALUE
  from v$statname t1, v$mystat t2
 where t1.STATISTIC# = t2.STATISTIC#
   and t1.name like '%sort%';


 
原创粉丝点击