반응형
* 오라클 페이징 쿼리
select
CEIL(ROW_NUMBER() OVER (ORDER BY {USER_ID}) / 50) PAGE
,CEIL(COUNT(*) OVER () / 50) TOTAL
,COUNT(*) OVER () RECORDS
from {table}
select
CEIL(ROW_NUMBER() OVER (ORDER BY {USER_ID}) / 50) PAGE
,CEIL(COUNT(*) OVER () / 50) TOTAL
,COUNT(*) OVER () RECORDS
from {table}
728x90
반응형
댓글