Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First 500 records that match (in sql)
Message
 
 
À
03/08/2008 21:51:35
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 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01336184
Message ID:
01336185
Vues:
18
>Hi. How would I say 'the first 500 records that match (my other criteria in the sql).
>

You would use the TOP clause. It does require the ORDER BY clause
SELECT TOP 500 * FROM ...
  ...
  ORDER BY ...
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform