Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create table mytab nologging as (
- select mod(rownum, 3) x, rownum y, mod(rownum, 3) z from all_objects, (select 'x' from user_tables where rownum < 4)
- );
- create index i on mytab (x, y, z);
- exec dbms_stats.gather_table_stats(ownname=>'DBADMIN',tabname=>'MYTAB', cascade=>true);
- set autot trace exp
- select * from mytab where y=5000;
- Execution Plan
- ----------------------------------------------------------
- 0 SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=10)
- 1 0 INDEX (SKIP SCAN) OF 'I' (INDEX) (Cost=1 Card=1 Bytes=10)
Add Comment
Please, Sign In to add comment