sql oracle分页测试

SELECT * FROM 
( 
SELECT A.*, ROWNUM RN 
FROM (SELECT ROWNUM phaseid FROM dual CONNECT BY ROWNUM <= 100 ) A 
WHERE ROWNUM <= 40 
) 
WHERE RN >= 21

你可能感兴趣的:(oracle,sql,测试)