Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT TOP is not standard
Message
De
01/05/2003 19:39:22
 
 
À
30/04/2003 11:02:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00783170
Message ID:
00783949
Vues:
14
>Fabio,
>Unfortunately it's a known behaviour of 'Top N' in VFP :(
>A workaround like this would do :
>
>
>SELECT TOP 1 * from ctop ORDER BY 1 into cursor crsTemp nofilter
>If (_Tally > 1)
> Select * from crsTemp where Recno() <= 1 into cursor crsTemp
>endif
>
Cetin

You could just do this:
SELECT TOP 1 * from ctop ORDER BY 1 HAVING RECNO()<=1 into cursor crsTemp nofilter
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform