Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grabbing 1 record
Message
 
À
26/03/2004 11:14:50
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00889997
Message ID:
00890016
Vues:
23
This message has been marked as the solution to the initial question of the thread.
I think what you want is the TOP clause in your SQL SELECT:

SQL TOP 1 * FROM MyTable ORDER BY MyColumn

>Hello,
>I am performing a SQL call in my VB.NET app where I grab the records sorted by date and put them in my dataset. What I want to do, however, is to grab 1 records (the most recent) and not the others. I am sure this is probably a simple questions, but I am not finding the answer. Thanks!
>
>MAC
Chris McCandless
Red Sky Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform