I have database rows ordered by id
I want to select 10 of them starting by id n
10 next records can be easily achieved with using LIMIT
I have problem with that id thing. Do I have to select row WHERE id is n, get its position and then use OFFSET? Or is there something more effective?
What would the query look like ?
try this:
or if you have
idthen: