Walking through an SQLite Table
Posted
by galford13x
on Stack Overflow
See other posts from Stack Overflow
or by galford13x
Published on 2010-04-15T14:02:23Z
Indexed on
2010/04/15
14:03 UTC
Read the original article
Hit count: 222
I would like to implement or use functionality that allows stepping through a Table in SQLite.
If I have a Table Products
that has 100k rows, I would like to retrive perhaps 10k rows at a time. Somthing similar to how a webpage would list data and have a < Previous .. Next >
link to walk through the data.
Are there select statements that can make this simple? I see and have tried using the ROWID in conjunction with LIMIT which seems ok if not ordering the data.
// This seems works if not ordering.
SELECT * FROM Products WHERE ROWID BETWEEN x AND y;
© Stack Overflow or respective owner