I have a table in Sqlite which contains three components for each record (eg A, B, C), and the primary key (id) is random. I would like a SQL query that extracts each record sequentially, as if you were applying a loop to the database.
I know there is a clause like LIMIT
but it only returns the first element (LIMIT 1) instead, two elements (LIMIT 2) ... but I want to extract a record, and process it and move on to another. Recalling that the id is random.