Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seelct * from Mytable where MyField = ''
Message
De
25/09/2013 18:29:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584133
Message ID:
01584135
Vues:
68
It's how VFP does with string comparisons.

The item on the left is compared up to the length of the field on the right. Because length on the right has a length of 0, it basically looks at SUBSTR(right, 0, 0)

Try SELECT * from MyTable WHERE MyField == ""

The double equal sign means exactly equal

>Hi
>Why does the following select ALL rows ?
>Select * from MyTable where MyField = '' && Two single quotes without a space in between
>
>Does not matter whether Set exact is on ot off
>Tia
>Gerard
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform