There is a proper way to do this:
ID | name
1 | aa
4 | bb
6 | dd
9 | ee
The identifier is the main index with auto_increment ... the missing indexes were SQL DELETEd, so there are some empty spaces
if i navigate the page? ID = 4 I want to get the previous line (with identifier 1) and the next (with identifier 6) (added :) using the same query
is there any way to do this without selecting / moving the entire result set?
Thank you in advance!
source
share