Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select last 100 records from table
Message
De
08/09/2005 12:17:13
 
 
À
08/09/2005 11:49:11
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 1.1
Database:
MS SQL Server
Divers
Thread ID:
01047740
Message ID:
01047752
Vues:
8
One way is you can use the TOP N clause and order the results so the last 100 rows will be at the top:
SELECT TOP 100 * FROM MyTable ORDER BY MyAlphaField DESC
Bill

>Is there a way to query the last 100 records in a SQL Server table?
>
>Thanks,
>
>Jerry
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform