sql> create table t as 0select username,password from dba_users. table created. sql> desc t name null? type ----------------------------------------- -------- ---------------------------- username not null varchar2(30) password varchar2(30) sql> create index i_t on t(username). index created. sql> set autotrace trace explain sql> 0select * from t where username= eygle . execution plan ---------------------------------------------------------- plan hash value: 1601196873 -------------------------------------------------------------------------- | id | operation | name | rows | bytes | cost (%cpu)| time | -------------------------------------------------------------------------- | 0 | 0select statement | | 1 | 34 | 2 (0)| 00:00:01 | |* 1 | table access full| t | 1 | 34 | 2 (0)| 00:00:01 | -------------------------------------------------------------------------- predicate information (identified by operation id): --------------------------------------------------- 1 - filter("username"= eygle ) note ----- - dynamic sampling used for this statement sql> set linesize 120 sql> 0select /* index(t,i_t) */ * from t where username= eygle . execution plan ---------------------------------------------------------- plan hash value: 2928007915 ------------------------------------------------------------------------------------ | id | operation | name | rows | bytes | cost (%cpu)| time | ------------------------------------------------------------------------------------ | 0 | 0select statement | | 1 | 34 | 2 (0)| 00:00:01 | | 1 | table access by index rowid| t | 1 | 34 | 2 (0)| 00:00:01 | |* 2 | index range scan | i_t | 1 | | 1 (0)| 00:00:01 | ------------------------------------------------------------------------------------ predicate information (identified by operation id): --------------------------------------------------- 2 - access("username"= eygle ) note ----- - dynamic sampling used for this statement |