Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best index expression?
Message
 
 
À
18/04/2005 14:35:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01005870
Message ID:
01005962
Vues:
20
I agree with Sylvain. The Scan for is optimizable, although just for Borislav's delight, I'd just change the final code as:
*-- Have an index on these two fields:
INDEX ON EMPTY (InsCommand) TAG E_InsCmd
INDEX ON SearchTB TAG SearchTB
SET ORDER TO

LOCATE ;
 FOR SearchTB = m.lcSearch AND NOT EMPTY (InsCommand) ;
 WHILE !plError
If I understood correctly the use of plError. It looks like a parameter, but if this is the case, I can't imagine what does it have to do with the condition...

Cheers,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform