Lets say I have a table like this;
Id | Name |
---|---|
1 | John |
2 | Doe |
5 | Rose |
11 | Michael |
15 | Pedro |
and my select query like this;
Id | Name |
---|---|
1 | John |
5 | Rose |
I want to select next rows according to my query which like this;
Id | Name |
---|---|
2 | Doe |
11 | Michael |
1 John
s next row is 2 Doe
and 5 Roes
's next row 11 Michael