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

oracleÖеIJ»¿É¼û×Ö·û

½ñÌì×öͳ¼ÆµÄʱºò·¢ÏÖÒ»¸öÊý¾Ý±íÃæÉÏ¿´À´ÊÇ‘920 ’µ«È¥¿Õ¸ñÎÞÂÒÈçºÎ¶¼È¥²»µô£¬×îºó·¢ÏÖÊDz»¿É¼û×Ö·û¡£¡£¡£
ÓÚÊÇÔÚÍøÉÏËѵ½Ò»ÆªÎÄÕ£¬ÈçºÎÀ´ÅжÏÕâ¸ö²»¿É¼û×Ö·ûµÄÎÊÌâ~
°´ÏÂÃæµÄ·½·¨Åжϳö²»¿É¼û×Ö·ûµÄascIIÂëÊÇ10£¬ÓÚÊÇÓÃrtrim('Ô­×Ö·û','chr(10)')À´È¥µôÕâ¸ö²»¿É¼û×Ö·û¡£
½ñÌìÓöµ½Ò»Ôò°¸Àý£¬ÎÊÌâÊÇÊý¾Ý¿âÖп´À´ÍêÈ«ÏàͬµÄ×Ö¶ÎÈ´´æÔÚ³¤¶È²îÒì¡£
¡¡¡¡Í¨¹ýlengthbÒÔ¼°dump£¬ÎÒÃÇ¿ÉÒÔÖªµÀÎÊÌâËùÔÚ£º
      SQL> select trim(log.sname),dump(log.sname),lengthb(log.sname) 
¡¡¡¡2 from st.LIMPORT_LOG log 
¡¡¡¡3 where log.dfee > date '2008-06-22' 
¡¡¡¡4 and log.dfee < date '2008-06-23' 
¡¡¡¡5 and log.sspname like '263%' 
¡¡¡¡6 group by log.sname,dump(log.sname); 
¡¡¡¡TRIM(LOG.SNAME) DUMP(LOG.SNAME) LENGTHB(LOG.SNAME) 
¡¡¡¡------------------- ----------- ---------------------------------------------- 
¡¡¡¡263ÍøÂçͨÐÅ Typ=1 Len=15: 50,54,51,205,248,194,231,205,168,208,197,0,0,0,0 15 
¡¡¡¡263ÍøÂçͨÐÅ Typ=1 Len=11: 50,54,51,205,248,194,231,205,168,208,197 11
¡¡¡¡Ê¹ÓÃDUMPº¯ÊýÎÒÃÇ·¢ÏÖ£¬ÔÚÓÐÎÊÌâµÄÊý¾ÝÖУ¬Êý¾Ýĩβ´æÔÚ¼¸¸ö×Ö·û0,0,0,0£¬Ò²¾ÍÊǶà³öÁ˼¸¸ö×Ö·û¡£
¡¡¡¡ÕýÊÇÕâ¶à³öµÄ¼¸¸ö×Ö·ûµ¼ÖÂÁË´æ´¢Òì³£¡£
¡¡¡¡ÄÇôÕâ¸ö0´ú±íʲô×Ö·ûÄØ?ÔÚASCII±àÂë±íÀïÎÒÃÇ¿ÉÒÔ¿´µ½Õâ¶ÔÓ¦ÁËÒ»¸ö²»¿É¼û×Ö·û£¬ÕâÊÇÊý¾ÝÈë¿âʱµÄÒì³£µ¼Öµģº
¡¡¡¡-The End-


Ïà¹ØÎĵµ£º

ORACLE 10 (¸¶Ê×ê¿)ѧϰ±Ê¼Ç µÚ2½Ú ÃüÁî¡£

ORACLE 10 ѧϰ±Ê¼Ç-µÚ2½Ú-ÃüÁî¡£
1. inner join / left join/ right join / full join
select a.dname, b.ename from dept a, emp b where a.deptno=b.deptno and a.deptno=10;
select a.dname, b.ename from dept a inner join emp b
on a.deptno=b.deptno and a.deptno=10;
select dname,ename from dept natural ......

Oracle£º1 not in (null)¼ìË÷²»³ö½á¹û

in/not   inÔÚÅжÏNULLʱÓõÄÓë=/<>Ò»ÑùµÄ·½Ê½£¬¼´±ØÐëÓÃis   nullÀ´Åжϣ¬·ñÔòʼÖÕΪʧ°Ü¡£  
  Óï¾ä  
  select   'true'   from   dual   where   (1,2)   not   in   ((2,3),(2,null));  
  ³É¹¦µÄÔ­ÒòÔÚÓÚÅж϶þÔªÖµÊ±Ê ......

oracle cast() º¯ÊýÎÊÌâ

¹Ø¼ü×Ö: oracle cast() º¯ÊýÎÊÌâ
SQL> create table t1(a varchar(10));
Table created.
SQL> insert into t1 values ('12.3456');
1 row created.
SQL> select round(a) from t1;
  ROUND(A)
----------
        12
SQL> select round(a,3) from t1;
ROUN ......

oracle ³£¼ûµÄº¯Êý

1. ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii(A) A,ascii(a) a,ascii(0) zero,ascii( ) space from dual;
A A ZERO SPACE
--------- --------- --------- ---------
65 97 48 32
2. CHR
¸ø³öÕûÊý,·µ»Ø¶ÔÓ¦µÄ×Ö·û;
SQL> select chr(54740) zhao,chr(65) chr65 from dual;
ZH C
-- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ