I am creating an index on Emp table Empno column,if u using
this indexed column in ur SELECT stmt. where clause,then how
do u know that yr index will be working or nor?
Thanks Advance...
Answers were Sorted based on User's Feedback
Answer / satish
Do the explain plan.if it is not using ur created index
then use hints to use ur created index
Is This Answer Correct ? | 6 Yes | 0 No |
You execute your query like
explain plan for select sal from emp where empno='1224';
after that check this below one.
select * from table(dbms_xplan.display);
here u can find it'll be excuted by using index or TABLE ACCESS FULL
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / manoranjan sethy
by using SET AUTOTRACE ON EXPLAIN tool you can came to know weather such index is working or not.
Is This Answer Correct ? | 1 Yes | 0 No |
What is primary key and foreign key?
how many values can the set function of mysql take? : Sql dba
what is 'mysqlcheck'? : Sql dba
what is the difference between char_length and length? : Sql dba
Name the different types of indexes in sql and define them.
What are the benefits of pl sql?
Which table is left in left join?
How does one use sql*loader to load images, sound clips and documents? : aql loader
What is the difference between instead of trigger and after trigger?
what is the difference between a local and a global temporary table? : Sql dba
How many joins in sql?
How many indexes can be created on a table in sql?