Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select - SQL & memo fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00823460
Message ID:
00823569
Vues:
24
Hi Brandon,

Sorry, I wasn't clear. When I said "empty memo field" I meant that there is nothing stored in the memo field. It's equvalent of zero-lenght string. In SQL Select with SET ANSI OFF SPACE(0) is equal any string on the right, so SPACE(0)="test" is true. Outside of SQL Select SPACE(0)="test" isn't true. The character fileds in VFP have fixed lenght. The 'MyNonMemoField' field even if it's empty is filled with spaces.

>Why then, does this not affect non-memo fields the same way?
>
>For example the following statements give the same result set:
>
>BROWSE FOR MyNonMemoField="test"
>and
>SELECT * FROM MyTable for MyNonMemoField="test"
>
>But substitute memo fields and then all empties are included with the Select statement but excluded with the browse statement.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform