Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DISTINCT changes datatype
Message
De
12/05/2010 02:24:08
 
 
À
11/05/2010 20:29:58
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 8 SP1
Divers
Thread ID:
01464251
Message ID:
01464267
Vues:
42
>Working with a MySql backend.........
>
>
=SQLEXEC(lnHandle, "SELECT myBitField FROM mySqlTable","myCursor)
>The results are logicals, as I expected.
>
>
=SQLEXEC(lnHandle,"SELECT DISTINCT myBifField FROM mySqlTable","myCursor")
>and the results are character
>
>Does anybody have an explanation for this? Even better, is there a simple way to get it back to the "correct" data type?
>
>Thanks to all........Rich

try
=SQLEXEC(lnHandle,"SELECT myBifField FROM mySqlTable GROUP BY myBifField","myCursor")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform