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

oracleÖÐtranslateÓëreplaceµÄʹÓÃ

1.translate
  Óï·¨£ºTRANSLATE(char, from, to)
 
 
Ó÷¨£º·µ»Ø½«³öÏÖÔÚfromÖеÄÿ¸ö×Ö·ûÌ滻ΪtoÖеÄÏàÓ¦×Ö·ûÒÔºóµÄ×Ö·û´®¡£
          
 Èôfrom±Èto×Ö·û´®³¤£¬ÄÇôÔÚfromÖбÈtoÖжà³öµÄ×Ö·û½«»á±»É¾³ý¡£
           
Èý¸ö²ÎÊýÖÐÓÐÒ»¸öÊÇ¿Õ£¬·µ»ØÖµÒ²½«ÊÇ¿ÕÖµ¡£
  ¾ÙÀý£ºSQL> select translate('abcdefga','abc','wo') ·µ»ØÖµ from dual;
          
 ·µ»ØÖµ
            -------
            wodefgw
  ·ÖÎö£º¸ÃÓï¾äÒª½«'abcdefga'ÖеÄ'abc'ת»»Îª'wo',
           
ÓÉÓÚ'abc'ÖÐ'a'¶ÔÓ¦'wo'ÖеÄ'w',
            ¹Ê½«'abcdefga'ÖеÄ'a'È«²¿×ª»»³É'w';
          
 ¶ø'abc'ÖÐ'b'¶ÔÓ¦'wo'ÖеÄ'o',
            ¹Ê½«'abcdefga'ÖеÄ'b'È«²¿×ª»»³É'o';
          
 'abc'ÖеÄ'c'ÔÚ'wo'ÖÐûÓÐÓëÖ®¶ÔÓ¦µÄ×Ö·û,
            ¹Ê½«'abcdefga'ÖеÄ'c'È«²¿É¾³ý;
            ¼òµ¥ËµÀ´£¬¾ÍÊǽ«fromÖеÄ×Ö·ûת»»ÎªtoÖÐÓë֮λÖöÔÓ¦µÄ×Ö·û£¬
           
ÈôtoÖÐÕÒ²»µ½ÓëÖ®¶ÔÓ¦µÄ×Ö·û£¬·µ»ØÖµÖеĸÃ×Ö·û½«»á±»É¾³ý¡£
            ÔÚʵ¼ÊµÄÒµÎñÖУ¬¿ÉÒÔÓÃÀ´É¾³ýһЩÒì³£Êý¾Ý£¬
           
±ÈÈç±íaÖеÄÒ»¸ö×Ö¶Ît_no±íʾµç»°ºÅÂ룬
            ¶øµç»°ºÅÂë±¾ÉíÓ¦¸ÃÊÇÒ»¸öÓÉÊý×Ö×é³ÉµÄ×Ö·û´®£¬
        &n


Ïà¹ØÎĵµ£º

ÍæתOracle£¨4£©

//ʹÓÃ×Ô¶¨Ò庯Êý¶¨ÒåÈÕÆÚ¸ñʽ
to_date('1982-11-11','yyyy-mm-dd')
to_date('1982/11/11','yyyy/mm/dd')
//Ï£ÍûÔ±¹¤scottµÄ¸Ú룬¹¤×Ê£¬²¹ÖúÓësmithÔ±¹¤Ò»Ñù
update emp set (job,sal,comm)=(select job,sal,comm from emp where ename='SMITH') where ename='SCOTT';
||-------  javaʹÓÃoracle &nbs ......

oracleºÍsqlserver²éѯʱ×èÈûÇé¿ö

1.oracle»·¾³
create table test
(
id number(4),
name varchar2(20)
)
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯû±»×èÈû
2.sqlserver»·¾³
ÔÚÒ»¸ösessionÖÐ
insert into test values(1,'aa');
ÔÚÁíÒ»¸ösessionÖÐ
select * from test1;
²éѯ±»×èÈû(Ê ......

OracleÁÙʱ±íµÄ½¨Á¢¼°Ê¹ÓÃ....

ÔÚOracle8i»òÒÔÉÏ°æ±¾ÖУ¬¿ÉÒÔ´´½¨ÒÔÏÂÁ½ÖÖÁÙʱ±í£º    
  1¡£»á»°ÌØÓеÄÁÙʱ±í    
          CREATE   GLOBAL   TEMPORARY   <TABLE_NAME>   (<column   specification>)    
        &nbs ......

oracle keep(first/last)


 ÏÈ¿´Ò»¶ÎORACLE¹Ù·½Îĵµ
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/analysis.htm#25806:
FIRST/LAST Functions
The FIRST/LAST aggregate functions allow you to return the result of an aggregate applied over a set of rows that rank as the first or last with respect to a ......

OracleÄÚ´æ½á¹¹

1. OracleÄÚ´æ½á¹¹¼ò½é
OracleÔÚÄÚ´æÖд洢ÒÔÏÂÐÅÏ¢£º
¡£³ÌÐò´úÂë
¡£ÒÔÁ¬½ÓµÄ»á»°ÐÅÏ¢£¬°üÀ¨µ±Ç°»î¶¯µÄ¼°·Ç»î¶¯µÄ»á»°
¡£³ÌÐòÖ´Ðйý³ÌÖÐËùÐèµÄÐÅÏ¢
¡£ÐèÒªÔÚOracle½ø³Ì¼ä¹²Ïí²¢½øÐÐͨÐŵĵÄÐÅÏ¢
¡£Êý¾ÝÎļþÄÚÊý¾ÝµÄ»º´æ£¨ÈçÊý¾Ý¿é¼°ÖØ×öÈÕÖ¾ÌõÄ¿£©
Oracle ÖеĻù±¾ÄÚ´æ½á¹¹°üÀ¨£º
¡£ÏµÍ³È«¾ÖÇø(SGA):´ËÇøÓòÓÉËùÓÐµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ