# 이후글
SELECT min(r.index)
FROM report_board as r
WHERE r.index > %s
# 이전글
SELECT max(r.index)
FROM report_board as r
WHERE r.index < %s
# 이후글
SELECT min(r.index)
FROM report_board as r
WHERE r.index > %s
# 이전글
SELECT max(r.index)
FROM report_board as r
WHERE r.index < %s
댓글