Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL comparison positioning
Message
De
06/01/2000 16:57:40
J Chris Powell
Myers and Stauffer Lc
Kansas, États-Unis
 
 
À
06/01/2000 15:19:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00313954
Message ID:
00314159
Vues:
59
Hi Chas and Roxanne,
I think this must be one of two things. Either the assumed variables have fields with duplicate names, but are not prefixed with an "m.". If a variable doesnt have the "m." infront of it (m.Variable), if there is a field by the same name (Table.Variable) in the selected area, then it compares the field instead of the variable. Previx all variables with "m." except when assigning them ("x = 4" as opposed to "IF m.x = 4"). The other scenario, and I assume this is probably it. Is just the nature of comparing strings. Do this:

?"abc" = "ab"
?"ab" = "abc"

Other than that, it is best to put WHERE Field = m.Variable because it is Rushmorizeable. WHERE m.Variable = FieldName is not.


Hope this helps
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform