Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oracle Sql Statement
Message
 
 
Information générale
Forum:
Oracle
Catégorie:
Autre
Divers
Thread ID:
00802182
Message ID:
00803515
Vues:
39
>First - we are not using conversions in indexes, it was just a thought.
>Second - that's an idea, but it's that like a conversion anyway?
>Thrid - still got same results with your subquery example. Still doing an INDEX scan on cStatus.
>
>I just can't beleive oracle is this stupid to not see that the date range is going to be so much faster.
>
>TIA

Mark,
The second option does not do a convert. In VFP, to combine index expressions you have to use the + or - operator. In Oracle, you simply define the fields to use as the index expression.
create index myindex on mytable 
   ( field1 asc,
     field2 asc,
     field3 asc)
Field1, field2 and field3 do not have to be the same data type.

One other option is to drop the index on cStatus entrirely.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform