Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select - SQL in VFP6 & VFP8
Message
De
14/09/2004 05:51:01
 
 
À
14/09/2004 05:35:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00941825
Message ID:
00941828
Vues:
20
Hi Don,

I suggest you read the Behavior changes since Visual Foxpro 7.0 under What's new in Visual FoxPro 8.0, Language Enhancements. In VFP8 the SQL syntax for GROUP BY was changed in order to ONLY comply with the ANSI standard. A GOOD thing in deed, although it means that if you had old code which did not comply with the ANSI standardm but which was supported by VFP7 and earlier, you must rewrite some of your SELECT statements.

>SELECT inv_mas.inv_no, inv_mas.inv_date, inv_mas.amount, sum(rct_tran.amount) as ytdpaid ;
> FROM aidata!inv_mas inner JOIN aidata!rct_tran ;
> ON Inv_mas.inv_no = Rct_tran.inv_no ;
> GROUP BY 1;
> INTO DBF cInv
>
>The above SQL command is perfectly working in VFP6. But when I tried it in VFP8 it gives me the following error message.
>
> SQL: GROUP BY clause is missing or invalid.
>
>Can anyone help me please?
>
>Don
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform