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

ORACLE¶ÔÉí·ÝÖ¤ºÅÂë´¦ÀíÏà¹ØµÄSQL»ã×Ü

         ĿǰÎÒ¹ú´óÁ¿´æÔÚ×ÅÕýÔÚÓÐЧÆÚµÄ15λÉí·ÝÖ¤£¬ËäÈ»¹ú¼ÒÔÚÍÆÐжþ´úÉí·ÝÖ¤£¬µ«ÉÐδ·¢ÏÖÇ¿ÐÐÒªÇóÈ«¹úÈËÃñ¸ü»»Î´µ½ÆÚµÄ15λÉí·ÝÖ¤µÄ¹Ù·½ÉùÃ÷»ò¹«¸æ¡£
          ³¶Ô¶ÁË£º£©£¬×ÜÖ®ºÏ·¨µÄ15λÉí·ÝÖ¤ºÅÂ뽫ÔÚ½ñºóÒ»¶Îʱ¼äÄÚ¼ÌÐø´æÔÚÏÂÈ¥¡£
         ÁíÍ⣬ÏîÄ¿ÖÐÍùÍùÓÐ×Å´óÁ¿µÄÀúÊ·Êý¾Ý£¬ÎÒÃǵÄÒ»¸öϵͳÖÐ15λÉí·ÝÖ¤ËùÕ¼±ÈÖØºÜ´ó£¬Òò´Ëϵͳ±ØÐëʵÏÖ¶ÔÁ½Ì×Éí·ÝÖ¤±àÂëµÄÖ°ÄÜ´¦Àí£¬²¢Ö§³ÖÁíÍâÒ»ÖÖÌØÊâÖ¤¼þÀàÐÍ£º¾ü¹ÙÖ¤/¾¯¹ÙÖ¤¡£±¾ÎÄÖØµãÌÖÂÛ15λ/18λÉí·ÝÖ¤µÄ´¦ÀíÎÊÌâ
         ÖÚËùÖÜÖª£¬ÎÒÃÇÏÖÖ´ÐеÄÉí·ÝÖ¤ºÅÂë±àÂëÓɹ«°²²¿¾ßÌåÂäʵ±àÂë¹æÔò£¬ÓÐ15λ/18λÁ½ÖÖ£¬¹«°²²¿ÒÔÊýѧÓïÑÔÃèÊöµÄ·½Ê½¹«¿ªÁËÉí·ÝÖ¤±àÂë¹æÔòºÍλÂ뺬Ò壬µ«¾ßÌåµ½¼ÆËã»úÓïÑÔʵÏÖ£¬ÐèÒª¿ª·¢ÈËÔ±×ÔÐиù¾ÝËã·¨Éè¼Æ¡£ÍøÉÏÁ÷´«°æ±¾²»ÉÙ£¬²»¹ý·±ÔÓ¶øÁèÂÒ£¬ÇÒÓëÓ¦Óü¯ºÏÃèÊöµÄ²»¶à¡£ÏÖ½áºÏÏîĿʵ¼ù̸̸Æä´¦ÀíºÍÓÃ;¡£
         ±¾ÎÄÖ÷ÒªÒÔoracleµÄSQLΪÀý×Ó£¬ÆäËûÓïÑÔ´ó¼Ò¿ÉÒÔ×ÔÐÐת»»£¬µÀÀí¶¼ÊÇÒ»ÑùµÄ¡£
ÕâÀïÒÔORACLEΪÀý£¬ÆäËûÊý¾Ý¿â·Ç³£ÀàËÆ£º
1 ºÅÂëת»»ÎÊÌâ       
create or replace ID15TO18(p_OldID varchar2) return varchar2 is
   type TIArray is table of integer;
   type TCArray is table of char(1);
   Result varchar2(18);
   W TIArray;
   A TCArray;
   S integer;
begin
   if Length(p_OldID) <> 15 OR  NOT ISIDCARD(p_OldID) then
--raise_application_error(-20999, '²»ÊǾÉ15λÉí·ÝÖ¤ºÅ»òÕß²»ÊÇÉí·ÝÖ¤ºÅ');
   Result := p_OldID;
   else
   W := TIArray(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1);
   A := TCArray('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
   Result := SubStr(p_OldID, 1, 6) || '19' || SubStr(p_OldID, 7, 9);
   S := 0;
   begin
      for i in 1 .. 17 loop
      S := S + to_


Ïà¹ØÎĵµ£º

OracleϵÁУºÍ¼Æ¬µÄ´æ´¢

 OracleϵÁУºÍ¼Æ¬µÄ´æ´¢
Ò»£ºÊ²Ã´ÊÇ´ó¶ÔÏ󣬴ó¶ÔÏó»ù±¾²Ù×÷£¿
 ²Î¼ûÎÒµÄBLOG£ºOracleϵÁУºLOB´ó¶ÔÏó´¦Àí
 http://blog.csdn.net/qfs_v/archive/2008/05/21/2464599.aspx
 
¶þ£¬Í¼Æ¬µÄ´æ´¢»ò¶þ½øÖÆÎļþµÄ´æ´¢
 1£¬ÏȲåÈëÆÕͨÊý¾Ý£¬Óöµ½´ó¶ÔÏóÁÐʹÓÃempty_blob()¹¹Ôì¿ÕµÄÖ¸Õë¡£
  Àý× ......

OracleϵÁУºLOB´ó¶ÔÏó´¦Àí

 OracleϵÁУºLOB´ó¶ÔÏó´¦Àí
 Ö÷ÒªÊÇÓÃÀ´´æ´¢´óÁ¿Êý¾ÝµÄÊý¾Ý¿â×ֶΣ¬×î´ó¿ÉÒÔ´æ´¢4G×ֽڵķǽṹ»¯Êý¾Ý¡£
 Ö÷Òª½éÉÜ×Ö·ûÀàÐͺͶþ½øÖÆÎļþÀàÐÍLOBÊý¾ÝµÄ´æ´¢£¬µ¥¶À½éÉܶþ½øÖÆÀàÐÍLOBÊý¾ÝµÄ´æ´¢¡£
 
Ò»£¬OracleÖеÄLOBÊý¾ÝÀàÐÍ·ÖÀà
 1£¬°´´æ´¢Êý¾ÝµÄÀàÐÍ·Ö£º
  ¢Ù×Ö·ûÀàÐÍ£º
 &nbs ......

OracleϵÁУº¼Ç¼Record

 OracleϵÁУº¼Ç¼£¨Record£©
Ò»£¬Ê²Ã´ÊǼǼ£¨Record£©£¿
 Óɵ¥ÐжàÁеıêÁ¿¹¹³ÉµÄ¸´ºÏ½á¹¹¡£¿ÉÒÔ¿´×öÊÇÒ»ÖÖÓû§×Ô¶¨ÒåÊý¾ÝÀàÐÍ¡£×é³ÉÀàËÆÓÚ¶àάÊý×é¡£
½«Ò»¸ö»ò¶à¸ö±êÁ¿·â×°³ÉÒ»¸ö¶ÔÏó½øÐвÙ×÷¡£ÊÇÒ»ÖÖÁÙʱ¸´ºÏ¶ÔÏóÀàÐÍ¡£
 
 ¼Ç¼¿ÉÒÔÖ±½Ó¸³Öµ¡£RECORD1 :=RECORD2£»
 ¼Ç¼²»¿ÉÒÔÕûÌå±È½Ï. ......

¡¾×ª¡¿Oracle Tablespace´´½¨

 Tablespace
ORACLEÖУ¬±í¿Õ¼äÊÇÊý¾Ý¹ÜÀíµÄ»ù±¾·½·¨£¬ËùÓÐÓû§µÄ¶ÔÏóÒª´æ·ÅÔÚ±í¿Õ¼äÖУ¬Ò²¾ÍÊÇÓû§ÓпռäµÄʹÓÃȨ£¬²ÅÄÜ´´½¨Óû§¶ÔÏó£®·ñÔòÊDz»³äÐí´´½¨¶ÔÏó£¬ÒòΪ¾ÍÊÇÏë´´½¨¶ÔÏó,Èç±í,Ë÷ÒýµÈ£¬Ò²Ã»Óеط½´æ·Å,Oracle»áÌáʾ:ûÓд洢Åä¶î£®
¡¡¡¡Òò´Ë£¬ÔÚ´´½¨¶ÔÏó֮ǰ£¬Ê×ÏÈÒª·ÖÅä´æ´¢¿Õ¼ä£®¡¡¡¡
  ·ÖÅä´æ ......

OracleÍⲿ±íСÀý

1)½¨Á¢²Ù×÷ϵͳĿ¼e:\test£¬×¼±¸Êý¾ÝÎļþdept.txt²¢ÖÃÓÚe:\testÖ®ÏÂ
"10","ACCOUNTING","NEW
YORK"
"20","RESEARCH","DALLAS"
"30","SALES","CHICAGO"
"40","OPERATIONS","BOSTON"
2)´´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ