ms sql limit equivalence
| From: | OIT) | Date: | Thu, 23 Jan 2003 22:47:25 +0000 |
| Subject: | ms sql limit equivalence | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-25091@lists.php.net to get a copy of this message | ||
Hi,
I am just joining this list so if this has been covered in the past I
apologize. I am working with MS SQL and would like the functionality that
MySQL's limit function provides. I understand that MS SQL has no such
command or equivalent. Has someone found a way to use standard (or MS SQL
specific) SQL to achieve the same goal? I have seen bits and pieces of code
and ideas here and there, but nothing seems to work. Any advice would be
appreciated.
Thanks,
Dean
Ps. If someone would like a table schema and brief example to work with:
Table table1 with columns a and b
Retrieve 5 entries from table1 sorted by a
Retrieve next 5 entries from table1 sorted by a
....