Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL problem in VFP 8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00851901
Message ID:
00851915
Vues:
8
Or check SET ENGINEBEHAVIOR...

>John,
>
>It's documented in VFP8 help under Behavior Changes Since Visual FoxPro 7.0 and INFO: SQL SELECT Behavior Changes in Visual FoxPro 8.0 mskb #813361.
>Either remove field1 from the column list or add it to the GROUP BY.
>
>>I use this handy dandy sql statement in VFP 7 to find duplicates. For some reason it doesn't work in VFP 8.
>>
>>The generated error is: SQL: GROUP BY clause is missing or invalid.
>>
>>SELECT field1, field2, cnt(*) ;
>>FROM TableName ;
>>GROUP BY field2 ;
>>HAVING cnt(*) > 1 ;
>>INTO CURSOR Dupes
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform