tiếp theo:
select * from foo where id = (select min(id) from foo where id > 4)
trước:
select * from foo where id = (select max(id) from foo where id < 4)
tiếp theo:
select * from foo where id = (select min(id) from foo where id > 4)
trước:
select * from foo where id = (select max(id) from foo where id < 4)