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

ÔÙÎʼ¸¸öoracleÎÊÌâ - Oracle / »ù´¡ºÍ¹ÜÀí

ÈçÌ⣺
1.ÈçºÎÀí½âvarchar2ÀàÐͲÉÓÃnon-padded,¶øchar²ÉÓÃBlank-Padded·½Ê½±È½Ï£¿
2.oracleÖÐͳ¼ÆÐÅÏ¢ÈçºÎÊÕ¼¯?
3.¼ÆËã2µÄ64´Î·½½á¹û²»¶Ô£¬²»ÖªÊ²Ã´Ô­Òò£¿
´úÂëÇåµ¥:
SQL code:

2µÄ64´Î·½¸ù
SQL> select power(2,64) from dual;

POWER(2,64)
-----------
1.844674407

SQL> select power(64,2) value from dual;

VALUE
----------
4096


4.rowidtochar(½«rowidÊý¾ÝÀàÐÍת»»Îª×Ö·ûÀàÐÍ)ºÍchartorowid(½«×Ö·ûÊý¾ÝÀàÐÍת»»ÎªrowidÀàÐÍ)µÄʹÓó¡ºÏ
5.Çë½ÌdumpµÄÓ÷¨
SQL code:

SQL> select dump(sysdate) from dual;

DUMP(SYSDATE)
--------------------------------------------------------------------------------
Typ=13 Len=8: 218,7,5,5,10,48,25,0



  ÆÚ´ý´ó¼ÒµÄ½â´ð£¡


SQL code:
3.
SQL> set numformat 999999999999999999999999999999999999999--Êä³öÇ°£¬ÏÈÉèÖÃÒ»¸öÊä³öÊý×ֵĸñʽ
SQL> select power(2,64) from dual;

POWER(2,64)
----------------------------------------
18446744073709551616


1¡¢varchar2ÀàÐͱȽÏʱ£¬ºöÂÔλÊý£¬char±È½Ïʱ£¬¸úλÊýÓйØ
¼òµ¥µÄ˵
{'a','a'} in
table a (a1 vc(20)


Ïà¹ØÎÊ´ð£º

OracleÐÐתÁÐ - Oracle / ¸ß¼¶¼¼Êõ

select distinct '1' t1,'2' t2,'3' t3,'4' t4 from table ²é³öÀ´µÄ½á¹ûΪ
1,2,3,4
ÎÒÏëµÃÒÔÏÂÕâÑùµÄЧ¹û
1
2
3
4
ÇëÎÊÒ»ÏÂÓÐʲô°ì·¨¿ÉÒÔ½â¾ö???
ûÓкõķ½·¨£¬ÓÃunion£¬Ò»ÌõÌõ¼Ç¼ƴ½Ó

SQL code:
wi ......

ÓÃibatisµ÷ÓÃoracleº¯ÊýµÄÎÊÌâ - Java / Web ¿ª·¢

oracleº¯ÊýÈçÏ£º
create or replace function P_WEB_GETCITYID
(
  p_mobileNumber in VARCHAR2,
  p_cityid out NUMBER
) Return NUMBER
IS
  p_areacode varc ......

¹ØÓÚSQLÓï¾äORµÄÎÊÌâ - Oracle / ¸ß¼¶¼¼Êõ

ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬
·½·¨1£º
°Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû'
......

oracleÁ½¸öÊý¾Ý¿âµÄͬ²½£¿ - Oracle / »ù´¡ºÍ¹ÜÀí

ÏÖÔÚ ÎÒÓÐ Êý¾Ý¿â oracle_A £¬ÀïÃæÓÐÕűí Ϊ table_A, È»ºóÎÒÒª¶¨Ê±µÄ °Ñ ÁíÒ»¸öÊý¾Ý¿â oracle_B,ÀïÃæµÄÒ»Õűí table_BµÄÊý¾Ý£¬ÐÂÔö·ÅÈëtable_AÀȻºóÔÙÇå¿Õtable_B£¬ÇëÎÊÓ¦¸ÃÔõô×ö£¿

ÓÃд¸ö´æ´¢¹ý³Ì£¬È»ºóÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ