Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selection
Message
De
03/09/1999 08:27:51
 
 
À
02/09/1999 22:32:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00260982
Message ID:
00261081
Vues:
20
There are two solution. You can use the ROWCOUNT connection setting:
SET ROWCOUNT 4
SELECT * FROM table WHERE ...
SET ROWCOUNT 0
But the better solution would be to use the TOP clause of the SELECT command, if you have something to sort on.
SELECT TOP 4 * FROM table WHERE ...
-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform