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.
The automatically-created rowid for a table can be accessed by a few different names. From the SQLite documentation:
You want to use LIMIT and OFFSET
Which can also be expressed with the following shorthand syntax
Where
X
represents the offset, which is exclusive, andY
represents the quantity, so for exampleWould return rows 51-100