● 서브 쿼리 ( 선택 칼럼 기준 졍렬 후 페이징 처리 )
페이지 정보
작성자 관리자 작성일 23-04-14 14:39 조회 556 댓글 0본문
① select ROW_NUMBER() OVER (order by hit) num, notice.* from notice; --조회수 오름차순 졍렬 후 전체 목록
② select * from (select ROW_NUMBER() OVER (order by hit) num, notice.* from notice) where num between 1 and 5; -- 1페이지
③ select * from (select ROW_NUMBER() OVER (order by hit) num, notice.* from notice) where num between 6 and 10; -- 2페이지
추천0 비추천 0
댓글목록 0
등록된 댓글이 없습니다.