Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with GROUP BY - much slower than without
Message
 
 
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 9
Divers
Thread ID:
01110065
Message ID:
01110296
Vues:
17
>What about
SELECT * FROM cursor1
>UNION
>SELECT * FROM cursor2
>
>BTW, I don't think you need ';' in the textmerge SQL SELECT.

select cTrans_pk, yBalance, cUserID, cUsGrLink_pk from cursor1
union
select cTrans_pk, yBalance, cUserID, cUsGrLink_pk from cursor2

would not work, since cUsGrLink_pk is going to be different.

; is removed in RunSQL function, but it helps if I want to test SQL separately.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform