Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracle²éѯ²¢È¡³öij¸ö·¶Î§ÐÐÎÊÌâ - Oracle / ¿ª·¢

²éѯ³öѧϰ³É¼¨¼°¸ñµÄËùÓÐѧÉú
²¢È¡³öµÚ10ÖÁ20Ãû

±í¿ÉÒÔ×Ô¼ºÆðÃû×Ö,ֻҪʵÏÖ¾ÍÐÐ

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


ÒýÓÃ
²éѯ³öѧϰ³É¼¨¼°¸ñµÄËùÓÐѧÉú
²¢È¡³öµÚ10ÖÁ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








¶àл!¸Ï½ô½áÌù,Òª²»·Ö¶¼²»¹»·ÖÁË


Ïà¹ØÎÊ´ð£º

oracle 9i ×î½ü·¢Ïֵǽ±¨´í - Oracle / »ù´¡ºÍ¹ÜÀí

ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
  ORA-01034:ORACLE not available
  ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡

1. Oracle sid ÕýÈ ......

oracle³õѧÕßÄãÇë½Ì - Oracle / »ù´¡ºÍ¹ÜÀí

--½¨Á¢Ò»¸ö°üÒÔ¶¨ÒåÒ»¸öÓαê
create or replace package PK_test 
as 
type cur_test is ref cursor;
end PK_test;
--½¨Á¢Ò»¸ö¹ý³Ì,ͨ¹ýÊäÈëJOBID£¬·µ»ØÒ»¸ö±í¼Ç¼£¨Óα꣩!
create or replace ......

OracleÈÏÖ¤ - Oracle / ÈÏÖ¤Ó뿼ÊÔ

ORACLEÅàѵ(OCA)ÈÏÖ¤½éÉÜ 
Oracle10g Certified Associate (OCA) Oracle ÈÏ֤רԱ¡£
¿¼ÊԳɼ¨Í¨¹ýÄÜ»ñµÃOracle¹«Ë¾ÎªÄú°ä·¢µÄÈ«ÇòÈÏÖ¤µÄÓ¢ÎÄOCAÖ¤Êé¡£OCAÓÉOracle¹«Ë¾³öÌâ¡£
¸ÃÖ¤Êé¿É×÷Ϊ¸÷ÆóÊÂÒµµ¥Î»Êý¾Ý¿ ......

oracle ´æ´¢¹ý³ÌÖÐÓ¦ÓÃÊÂÎñµÄÎÊÌâ - Oracle / ¿ª·¢

SQL code:

CREATE OR REPLACE PROCEDURE usp_refreshTopN IS
BEGIN
--Îĵµ
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,organizat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ