Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC SQL Syntax to a VFP table
Message
 
À
18/05/2001 16:57:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00508001
Message ID:
00509160
Vues:
25
>Bret,
>
>Remember that SET ANSI determines how comparisons between strings of different lengths are made with the = operator in Visual FoxPro SQL commands.
>
>If SET ANSI is ON, FoxPro pads the shorter string with the blanks needed to make it equal to the longer string's length. The two strings are then compared character for character for their entire lengths.
>
>If SET ANSI is OFF, the two strings are compared character for character until the end of the shorter string is reached.

Which is why I prefer to use exact equals (ALLTRIM(A)==ALLTRIM(B)) when comparing strings.
Nebraska Dept of Revenue
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform