● 서브 쿼리 ( 선택 칼럼 기준 졍렬 후 페이징 처리 )
페이지 정보
![profile_image](https://dancepkt.cafe24.com/data/member_image/ad/admin.gif?1630310007)
본문
① 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
- 이전글회원별 작성한 게시물 갯수 23.04.18
- 다음글● 순위 함수 ( row_number , rank , dense_rank ) 23.04.14
댓글목록
등록된 댓글이 없습니다.