±í¿ÉÒÔ×Ô¼ºÆðÃû×Ö,ֻҪʵÏÖ¾ÍÐÐ select * from (select t.*,rownum flag from table t order by ³É¼¨ desc ) where flag >= 10 and flag <= '20' rownum > ij¸öÊý×Ö OR rownum = ·Ç1µÄÊý×Ö ¶¼ÊDz»ºÏ·¨µÄ°É select * from ( select b.* ,rownum as rn from (select t.* from table t where ³É¼¨>=60 order by ³É¼¨ desc )b) where rn<=20 and rn>=10 Ç°Ìá:¼°¸ñµÄÐÐÊýÒª³¬¹ý20ÐÐ SQL code: select * from (select rownum rn,³É¼¨ from ±íÃû where ³É¼¨ >= 60 order by ³É¼¨ desc) where rn >= 10 and rn <= 20
SQL code:
select * from (select rownum rn,a.* from tb a where a.cj>=60 order by cj desc) where rn>=10 and rn<=20
ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡ ORA-01034:ORACLE not available ORA-27101:shared memory realm does not exist ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡
CREATE OR REPLACE PROCEDURE usp_refreshTopN IS BEGIN --Îĵµ INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,organizat ......