|
|
| There's more than one way to do things | |
| PerlMonks |
Answer: How to display from X to Y records using DBI? |
| ( #9843=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > database programming > How can I retrieve records X to Y using DBI? contributed by btrott
I'll expand on what chromatic wrote, because the
LIMIT keyword can do even more than just that. :)
In addition to specifying the max number
of records to return, you can specify an offset
of where to start in the records being
returned. The syntax is
So, for example, to view records 10-35, do this: Pretty neat! Consult the MySQL SELECT docs for more details and tips.
|
|
||||||||||||||||||