अगला:
select * from foo where id = (select min(id) from foo where id > 4)
पिछला:
select * from foo where id = (select max(id) from foo where id < 4)
अगला:
select * from foo where id = (select min(id) from foo where id > 4)
पिछला:
select * from foo where id = (select max(id) from foo where id < 4)