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 programs use sql?
define primary key & secondary key?
Is sql database free?
Please let me know if UNION ALL and Natural Join does the same operation and are same...
What is a Mapplet?
Which one of the following pairs of aggregate functions do you use with character fields? 1. COUNT(field) and MAX(field) 2. AVG(field) and COUNT(field) 3. MIN(field) and SUM(field) 4. AVG(field) and MAX(field) 5. COUNT(field) and SUM(field)
Why is sql*loader direct path so fast?
What is trigger and stored procedure in sql?
how to show all tables with 'mysql'? : Sql dba
What are two parts of package ?
Can triggers stop a dml statement from executing on a table?
Why we use joins in sql?