Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any difference?
Message
De
02/09/1997 18:48:58
 
 
À
02/09/1997 17:14:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00048114
Message ID:
00048143
Vues:
22
Michel it is always best to take functions out of a loop is possible - and in this case the SELECT serves as a loop (i.e. the DATE() function is re-evaluated for every record) thus the second statement runs faster Arnon > >Is there any optimization difference in the following: > >SELECT FIELD FROM TABLE WHERE FIELDDATE=DATE() INTO CURSOR TEMP > >OR > >ldDate=DATE() >SELECT FIELD FROM TABLE WHERE FIELDDATE=ldDate INTO CURSOR TEMP >
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform