Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A very simple but complicated SQL statement.
Message
De
26/02/1998 12:01:31
 
 
À
26/02/1998 11:58:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00081329
Message ID:
00081422
Vues:
28
>>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

Yes. I'd prefer to call stored procedure, i.e. SQLExec(c,"execute ...") which will do the abovementioned operations.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform