Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select, which returns exact number of records
Message
De
13/04/2000 10:42:28
 
 
À
13/04/2000 09:11:33
Jan Korecko
Coopex Soft S.R.O.
Presov, Slovaquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00359207
Message ID:
00359272
Vues:
10
Jan,

>I have command "SELECT * FROM table WHERE ORDER BY ", which returns e.g. 100 records, but I want use first or last 10 records only. How to correct this command for this purpose?
>I donn't want to use "TOP 10" clause, because it can return more than 10 records. I want exactly 10 records (if exist, of course).

Just use a little xbase then.
SELECT * FROM table INTO CURSOR temp WHERE conditions ORDER BY column
COPY NEXT 10 TO filename
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform