Select /*+ ordered index (tablename
indexname) */
from tablename
Where a = ?
这个indexname要是根据这个条件a建的索引。
Select /*+ use_hash(table alias name) */ --需要写用到的所有表的别名,空格隔开,如果有子查询在子查询里也加类似hint.
from tablename
Where a = ?
Select /*+ ordered index (tablename
indexname) */
from tablename
Where a = ?
这个indexname要是根据这个条件a建的索引。
Select /*+ use_hash(table alias name) */ --需要写用到的所有表的别名,空格隔开,如果有子查询在子查询里也加类似hint.
from tablename
Where a = ?