I want to write SQLite statement something like this:
SELECT * FROM Table WHERE RowNumber BETWEEN 1 AND 10;
but i don’t have such column RowNumber. I have primary key in my table. But is there row number by default that i could use ?
Also i am searching info about writing more complicated SQLite statement. So if you have some links in bookmarks please share.
Thanks.
You want to use LIMIT and OFFSET
Which can also be expressed with the following shorthand syntax
Where
Xrepresents the offset, which is exclusive, andYrepresents the quantity, so for exampleWould return rows 51-100