Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inefficient query
Message
De
27/01/2007 15:38:46
 
 
À
26/01/2007 16:24:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01188966
Message ID:
01189878
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>This appears to suggest I should somehow construct the query on the fly based on what criteria were filled in. If so, whats a good way to proceed?

That makes sense. I tend to write this kind of code like this:
cWhere = ""
IF NOT EMPTY(m.cCriterion)
   cWhere = m.cWhere + "SomeField = " + m.cCriterion
ENDIF

...

SELECT ... ;
  FROM ... ;
  WHERE ... AND &cWhere ;
  INTO CURSOR Result
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform