SELECT * FROM (SELECT ENAME,SAL,ROWNUM RN FROM EMP WHERE ROWNUM <= @CURRENTPAGE*@PAGESIZE) SUB WHERE SUB.RN > (@CURRENTPAGE-1)*5;
时间: 2024-10-08 17:42:22
SELECT * FROM (SELECT ENAME,SAL,ROWNUM RN FROM EMP WHERE ROWNUM <= @CURRENTPAGE*@PAGESIZE) SUB WHERE SUB.RN > (@CURRENTPAGE-1)*5;