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 denormalization in a database?
Why does %isopen return false for an implicit cursor?
what is the syntax used for partition in tsql? : Transact sql
Differentiate between %type and %rowtype attribute in Oracle PL/AQL programming ?
What is the difference between a database and a relational database?
How do I write a cron which will run a sql query and mail the results to agroup?
How does postgresql compare to oracle/db2/ms sql server/informix?
how can we find the number of rows in a table using mysql? : Sql dba
Can we create table inside stored procedure?
What are the different types of joins in sql?
What are tables and fields?
Why do we use procedures in pl sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)