in reply to Browsing a sql table on the web
SELECT * FROM BLAH ORDER BY ID LIMIT 40 OFFSET 100to limit your query to items 100-139 in the BLAH table. This makes it easy to write a pager for a table, see for instance Class::DBI::Plugin::Pager, which is a pager for the Class::DBI framework.
This approach doesn't take insertion of rows into account, which may or may not be a problem, depending on how and how often your table changes.
|
---|