Re: Optimizer hints - help needed [message #369609] |
Fri, 03 November 2000 08:32 |
jag Anegondi
Messages: 3 Registered: November 2000
|
Junior Member |
|
|
Hi,
Oracle chooses index scan if the indexed column appears in the where clause.As, you are not using any where clause index never comes into picture.
You check this:
SQL> select /*+ index_desc(xx ik) */ * from xx;
X
----------
11/03/2000
10/03/2000
09/03/2000
10/03/2000
06/03/2000
08/03/2000
6 rows selected.
SQL> select /*+ index_desc(xx ik) */ * from xx
2 where x <sysdate;
X
----------
11/03/2000
10/03/2000
10/03/2000
09/03/2000
08/03/2000
06/03/2000
6 rows selected.
Here x is indexed.
I hope this helps.
Thanks
Jag
|
|
|