Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another SQL question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00694233
Message ID:
00694237
Vues:
12
>Hello,
>
>I'm using this SQL statement:
>
SELECT * from Test WHERE CHRTRAN(cName,' ','') = "GAMMARES"
>
>The result will also give records like "GAMMA". However, "GAMMA" = "GAMMARES" returns .F. Why does the result include these records?
>Thanks.

If SET ANSI is set to ON then there is no match.

If SET ANSI is set to OFF then the result will be as you have indicated as GAMMA is contained within GAMMARES.

You can also use == to indicate "exactly equal to".

Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform