I've got a sqlite db with 100K rows. However, some of these rows have been deleted over time, so that the primary keys are no longer sequential. Now, they are ordered like 3,5,6,9,900,n...
The problem is that I want to put these in a UITableView with the cellForIndexRowAtIndexPath being 0,1,2,3 etc. Is there a way I can do something like
SELECT * FROM table WHERE id = 0;
but rather than have id = 0, I want to select the index position at 0 like;
SELECT * FROM table where table._table_index = 0; //don't try this at home
Thanks!