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

Click here to load this message in the networking platform