Study/Database
게시판 다음글 이전글
유쾌한순례자
2010. 6. 26. 01:31
쿼리로 간단히 해결
<!-- 이전글
select * from bbs where idx = (select max(idx) from bbs where idx<?)
<!-- 다음글
select * from bbs where idx = (select min(idx) from bbs where idx>?)
<!-- 이전글
select * from bbs where idx = (select max(idx) from bbs where idx<?)
<!-- 다음글
select * from bbs where idx = (select min(idx) from bbs where idx>?)