Possible Duplicate:
Select statement in SQLite recognizing row number
For example, SELECT * FROM table WHERE [row] BETWEEN x AND y
How can this be done? I’ve done some reading but haven’t found anything specifically correct.
Imagine a list where you want results paged by an X amount of results, so for page 10 you would need results from rows 10 * X to 10 * X + X. Rather than display ALL results in one go
For mysql you have limit, you can fire query as :
For Oracle you can use rownum
See mysql select syntax and usage for
limithere.For SQLite, you have
limit, offset. I haven’t used SQLite but I checked it on SQLite Documentation. Check example for SQLite here.