Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mysql returns Char for COUNT()
Message
De
12/02/2010 12:50:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Mysql returns Char for COUNT()
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01448957
Message ID:
01448957
Vues:
124
lcSql = "SELECT substring(myField,1,3) AS myField,  COUNT(*) AS totItems " +;
           "   FROM myTable"+;
           "  GROUP BY substr(myField,1,3)"

=SQLEXEC(lnConHandle,lcSql,"myCursor")

? TYPE('myCursor.totItems') -----> "C"
Does anybody know why this happens and if there are any other aggregate functions which return an ummmmmmmmm "unexpected" data type?

FWIW - I got a numeric value by substituting SUM(1) for COUNT(*) but I'm still curious about this.

Thanks to all........Rich
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform