Home » SQL & PL/SQL » SQL & PL/SQL » Index column
Index column [message #19909] Wed, 17 April 2002 23:44 Go to next message
Dhinakar
Messages: 1
Registered: April 2002
Junior Member
Dear friends,

How oracle Internally fetches the rows based on the 'where' clause in the select statement if the column in the 'where' clause is a index based column

Eg., assume that if we are creating a index for a employee number in a employee table which contains 1000 values.In the select statement if we want to retrieve the value based on the employee number,then how oracle internally searches for that particular value.Whether the sorted column value will be stored along with the rowids and the index value or the index tablespace will hold only the corresponding rowids based on the sorted column value along with the index value.

Can anyone explain in elaborate.

Bye
dhina
Re: Index column [message #19919 is a reply to message #19909] Thu, 18 April 2002 05:19 Go to previous message
Mike
Messages: 417
Registered: September 1998
Senior Member
Hi,

To see how oracle executes your query you can, in sqlplus, SET AUTOTRACE ON.

For more details about the Oracle Optimizer which defines how a query will be executed have a look at:
http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/server.901/a87503/opt_ops.htm#1656

Mike
Previous Topic: How to monitor number of processes?
Next Topic: pl/sql
Goto Forum:
  


Current Time: Fri Apr 26 08:20:25 CDT 2024