Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALLTRIM vs PADL with Indexes
Message
 
 
À
19/04/2001 12:32:45
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00497311
Message ID:
00497385
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
The left part of the WHERE criteria must match the expression used in the index in order for it to be used.

select * from mytable where UPPER(FIELD) = PADL(value,4) will use the index.
select * from mytable where ALLTRIM(FIELD) = ALLTRIM(value) will not.

>What if it is in a SELECT - SQL... ?
>
Larry Miller
MCSD
LWMiller3@verizon.net

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

Click here to load this message in the networking platform