How to use index in a select query in oracle? When creating indexes can enhance performance?
How to use indexed explicitly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In case oracle comes up with a bad execution plan and you really really have to tell it which index to use (happens very seldom, but it happens), you can user optimizer hints:
But that should be your last resort. Before you even try to do it that way, use
to tell Oracle to analyze the table; hopefully, it will find out when to use the index that way.