Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A very simple but complicated SQL statement.
Message
De
26/02/1998 11:58:53
 
 
À
26/02/1998 09:53:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00081329
Message ID:
00081419
Vues:
21
>In SQL-Server you can set @@ROWCOUNT to 5 to retrieve just 5 record once. I don't use Oracle, but guess something similar should be there.

A better way to do this in MS SQL Server would be:

r = SQLEXEC(c, [SET ROWCOUNT 5; SELECT * FROM table ORDER BY sal DESC; SET ROWCOUNT 0])

-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