Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String comparisons
Message
De
08/11/2006 13:59:48
 
 
À
08/11/2006 13:54:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Divers
Thread ID:
01168143
Message ID:
01168178
Vues:
12
>This works for me. Not sure if it will in VFP6 though:
>
>CREATE CURSOR myfile (cvalue C(20))
>FOR i = 1 TO 100
>   INSERT INTO myfile VALUES ('01-'+TRANSFORM(i))
>   IF i = 10
>      FOR i2 = 1 TO 10
>	 INSERT INTO myfile VALUES ('01-10'+ALLTRIM(STR(i2)))
>      ENDFOR
>   ENDIF			
>ENDFOR
>SELECT * FROM myfile WHERE ALLTRIM(cvalue) == "01-10" && pull only 01-10
>SELECT * FROM Myfile 	                              && pull all
>
How to use exact comparison with BETWEEN?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform