Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A very simple but complicated SQL statement.
Message
From
26/02/1998 11:58:53
 
 
To
26/02/1998 09:53:36
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00081329
Message ID:
00081419
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform