There is a table with fields id and title . Record id known. How to get the next entry by id ? Suppose if id is 4 , then get a record with id 5 (or 66 , or 88 , depending on the number of the next record).
Source: https://ru.stackoverflow.com/questions/610784/
All Articles
order by id? And if the sample, then what prevents youwhere id = @id+1? - nick_n_aSELECT * FROM table WHERE id > 4 ORDER BY id ASC LIMIT 0, 1? - Regent