-
You can specify how to use the index when querying. ­
­
SELECT /*+ index(TB_ALIAS IX_G_COST3) */­
TB_ALIAS.*­
FROM g_Cost TB_ALIAS­
WHERE Item_Two = 0­
AND Flight_Date >= To_Date('20061201', 'YYYYMMDD')­
AND Flight_Date <= To_Date('20061231', 'YYYYMMDD');­
­
You can also specify how to use the index when deleting. ­
­
DELETE /*+ index(TB_ALIAS IX_G_COST1) */­
FROM g_Cost TB_ALIAS­
WHERE ITEM_NAME = 'Hourly fee';­
­
IX_G_COST1, IX_G_COST3 are both indexes of table G_COST.