본문 바로가기
Database/Oracle Lecture

페이징 처리 쿼리

by 현이빈이 2008. 7. 11.
반응형

SELECT *
 FROM
    (SELECT rownum as rnum, userId, userName, userPhone, userEmail, classFlag, groupFlag, useFlag, registDate
     FROM
       (
    select userId, userName, userPhone, userEmail, classFlag, groupFlag, useFlag, registDate from studio.customer_mng where useFlag='Y' order by idx DESC, userName
    )  )
 WHERE rnum > 0 AND rownum <= 10

반응형