Hint - INDEX
Synopsis
INDEX (table_name, { COLUMN column_name | ALL | NONE } )
This hint affects the use of indexes to evaluate a query. A hint comment can contain one or more INDEX hints per table with column name, or a single INDEX hint for a table with either ALL or NONE.
If INDEX
hint(s) with column_name exist, those columns’ indexes are used where applicable, and no other indexes of the pertinent table are used.
If an INDEX
hint with ALL exists for a table, all the indexes of the table are used where applicable.
If an INDEX
hint with NONE
exists for a table, none of the table’s indexes is used to evaluate the query.
A combination of column_name and ALL
for the same table is redundant but valid, a combination of NONE
and any other INDEX
hint for the same table is contradictory and results in ignoring the hints.