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

oracle°´Ê±¼ä²éѯ·­Ò³Ê±³öÏÖÓëÇ°ÃæÒ»Ò³Öظ´Êý¾Ý

ÓÃhibernate²éѯ·Öҳʱ£¬·­Ò³ÏÔʾÖÐÓÐÉÙÁ¿¼Ç¼ÊÇÖظ´µÄ¡£ÒѾ­È·ÈÏsqlд·¨Ã»´íÎó¡£
select savebillin0_.*,entityacct2_.*
from save_bill_info savebillin0_,
CUST_INFO custinfo1_,
entity_acct_bill entityacct2_
where savebillin0_.cust_id = custinfo1_.ID
and entityacct2_.ACCOUT_ID =
(select max(entityacct3_.ACCOUT_ID)
from entity_acct_bill entityacct3_
where entityacct3_.SAVEBILL_ID = savebillin0_.SAVEBILL_ID)
and savebillin0_.OPER_STATUS <> 'BPP00'
and savebillin0_.ADSCRIPTION_ID = '00010015'
order by entityacct2_.OPER_DATE desc   
¾­¹ý·¢ÏÖµ±oper_dateÕâ¸ö×Ö¶ÎΪͬһÌìʱ£¬µ¼Ö·­Ò³³öÏÖÉÙÁ¿Öظ´Êý¾Ý£¬¼ÓÈë,savebillin0_.savebill_id desc ΨһÐÔ×ֶεÄÅÅÐòºó¿ÉÒÔ½â¾ö£¬¿ÉÄܸúoracleÄÚ²¿ÅÅÐòϸ½ÚÓйØϵ¡£


Ïà¹ØÎĵµ£º

Oracleʱ¼ä¾«È·µ½Ê±¡¢·Ö¡¢Ãë´¦Àí·½·¨

Ò»°ãÊý¾Ý¿âÖÐʱ¼äµÄ¸ñʽΪDATEÀàÐÍ£¬¶øÎÒÃÇ´ÓÒ³ÃæÖлñÈ¡µÄʱ¼äÍùÍùΪStringÀàÐÍ£¬Õâ¸ö¾ÍÐèÒªÀàÐ͵Äת»»¡£Ò»°ãÎÒÃÇ»áͨ¹ýµ÷Óà Java.text.SimpleDateFormat JAVAÀàÀ´¶ÔÆä½øÐÐת»»¡£Õâ¸öJAVAÀàÖÐÎÒÃǾ­³£Óõ½µÄ·½·¨ÓÐÁ½¸ö£¬Ò»¸öÊÇformat(½«Ê±¼ä¸ñʽµÄÊý¾Ýת»»³ÉStringÀàÐÍ)£¬ÁíÒ»¸ö¾ÍÊÇ parse(½«StringÀàÐÍת»»³ÉDATEÀàÐÍ)¡£ÎÒ ......

javaµ÷ÓÃOracleÓû§µÇ¼´æ´¢¹ý³Ì

PROCEDURE user_Login (
      i_AuthID         IN       user_UserPass.UserID%TYPE,        --Óû§´úÂë
      i_FunctionCode   IN &n ......

oracle ³£Óú¯Êý

1. select * from emp;
2. select empno, ename, job from emp;
3. select empno ±àºÅ, ename ÐÕÃû, job ¹¤×÷ from emp;
4. select job from emp;
5. select distinct job from emp;
6. select distinct empno, job from emp;
˵Ã÷:ÒòΪ¹ÍÔ±±àºÅ²»Öظ´, ËùÒÔ´Ëʱ֤Ã÷ËùÓеÄÁÐûÓÐÖظ´,ËùÒÔ²»ÄÜÏû ......

OracleÖÐKill sessionµÄÑо¿

ÎÒÃÇÖªµÀ,ÔÚOracleÊý¾Ý¿âÖÐ,¿ÉÒÔͨ¹ýkill sessionµÄ·½Ê½À´ÖÕÖ¹Ò»¸ö½ø³Ì,Æä»ù±¾Óï·¨½á¹¹Îª:
alter system kill session 'sid,serial#' ;
±»killµôµÄsession,״̬»á±»±ê¼ÇΪkilled,Oracle»áÔÚ¸ÃÓû§ÏÂÒ»´ÎtouchʱÇå³ý¸Ã½ø³Ì.
ÎÒÃÇ·¢ÏÖµ±Ò»¸ösession±»killµôÒԺ󣬸ÃsessionµÄpaddr±»Ð޸ģ¬Èç¹ûÓжà¸ösession±»kill£¬ÄÇô¶ ......

ORACLEÀàËÆsplitº¯ÊýµÄ¹¦ÄÜ

 SELECT ID,
       col_name,
       SUBSTR(col_name, 1, INSTR(col_name || ',', ',', 1, 1) - 1) C1,
       SUBSTR(col_name,
              ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ