How do I get the offset of a particular row in a SQLite3 database? I am not talking about the ROWID, which is not linear, I am talking about the offset/position of a specific ROWID from the first ROWID in the table.
This is something like the SELECT COUNT(rowid) FROM table WHERE rowid < row
, which returns the number of rows before the row identified with row
. I feel that this is too slow, so I am hoping there is another way, faster than this, which will give me the offset/position of a row in a table.