Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group By in VFP 8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00852868
Message ID:
00852892
Vues:
7
Hi Stephen

>Is there a reason why
>
>
>SELECT * FROM tblData GROUP BY field1
>
>
>fail in VFP8 but work in VFP7? Did the syntax changed in VFP8?

Yes. This is documented in the help file. VFP now, by default, requires that fields not specifically named in an aggregate function (SUM, COUNT etc) must be explicitly included in the GROUP BY. This is to make VFP SQL more closely conformant with the ANSI Standards and other databases.

Use "SET ENGINEBEHAVIOR 70" to run VFP 7.0 SQL code under VFP 8.0
----
Regards
Andy Kramek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform