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

oracleÖÐnvarchar2×Ö·û¼¯²»Æ¥Åä

oracleµ±¶à±íunionʱÓöµ½nvarchar2ÀàÐÍʱ±¨´í ×Ö·û¼¯²»Æ¥Åä
¶ÔʹÓÃnvarcharµÄµØ·½£¬¼ÓÉÏ to_char( nvarchar µÄ±äÁ¿»ò×ֶΠ)
È磺
select to_char(name),price from aa
union all
select  to_char(name),price from bb
3Õűíaa,bb,cc¶¼ÓÐ name price ×ֶΠ²éѯ¼Û¸ñ×î¸ßµÄÇ°3λÐÕÃû
select * from(select to_char(name),price from aa
union all
select  to_char(name),price from bb
union all
select to_char(name),price from cc  order by price desc)where rownum<=3
¡¾×¢Òâ¡¿
VARCHAR2ÊÇOracleÌṩµÄÌض¨Êý¾ÝÀàÐÍ£¬Oracle¿ÉÒÔ±£Ö¤VARCHAR2ÔÚÈκΰ汾ÖиÃÊý¾ÝÀàÐͶ¼¿ÉÒÔÏòÉϺÍÏòϼæÈÝ¡£
VARCHARÔÚOracleÖв»½¨ÒéʹÓá£
¾ßÌåµ½NVARCHAR2ºÍVARCHAR2µÄÇø±ð£¬´ÓʹÓýǶÈÀ´¿´Çø±ðÔÚÓÚ£ºNVARCHAR2ÔÚ¼ÆË㳤¶ÈʱºÍ×Ö·û¼¯Ïà¹ØµÄ£¬ÀýÈçÊý¾Ý¿âÊÇÖÐÎÄ×Ö·û¼¯Ê±ÒÔ³¤¶È10ΪÀý£¬Ôò
1¡¢NVARCHAR2(10)ÊÇ¿ÉÒÔ´æ½øÈ¥10¸öºº×ֵģ¬Èç¹ûÓÃÀ´´æÓ¢ÎÄÒ²Ö»ÄÜ´æ10¸ö×Ö·û¡£
2¡¢¶øVARCHAR2(10)µÄ»°£¬ÔòÖ»ÄÜ´æ½ø5¸öºº×Ö£¬Ó¢ÎÄÔò¿ÉÒÔ´æ10¸ö¡£ 
asp.net,WWW.FENGFLY.com
Óê·ã ¼¼ Êõ½Ì³ÌÍø asp.net,WWW.FENGFLY.comasp.net,WWW.FENGFLY.com ...
Ô­ÎÄÀ´×Ô£ºÓê·ã¼¼Êõ½Ì³ÌÍø http://www.fengfly.com
Ô­ÎÄÍøÖ·£ºhttp://www.fengfly.com/plus/view-168612-1.html


Ïà¹ØÎĵµ£º

OracleÖÐCursor½éÉÜ

¹Ø¼ü×Ö 
¸ÅÄî 
ÀàÐÍ 
Òì³£´¦Àí 
Ò»  ¸ÅÄî 
ÓαêÊÇSQLµÄÒ»¸öÄڴ湤×÷Çø£¬ÓÉϵͳ»òÓû§ÒÔ±äÁ¿µÄÐÎʽ¶¨Òå¡£ÓαêµÄ×÷ÓþÍÊÇÓÃÓÚÁÙʱ´æ´¢´ÓÊý¾Ý¿âÖÐÌáÈ¡µÄÊý¾Ý¿é¡£ÔÚijЩÇé¿öÏ£¬ÐèÒª°ÑÊý¾Ý´Ó´æ·ÅÔÚ´ÅÅ̵ıíÖе÷µ½¼ÆËã»úÄÚ´æÖнøÐд¦Àí£¬×îºó½«´¦Àí½á¹ûÏÔʾ³öÀ´»ò×î ......

ORACLEÈëÃÅÊé¼®ÍƼö


OracleÈëÃÅÊé¼®ÍƼö
ºÜ¶àÅóÓÑÒªÎÒ°ïæÍƼöÒ»ÏÂOracleµÄÈëÃÅÊé¼®£¬Äܹ»Á˽âOracleµÄ»ù±¾¸ÅÄî¡¢»ù±¾ÖªÊ¶µÄÄÇÖÖ¡£
ÎÒ¾ÍÃâΪÆäÄÑ£¬ÍƼö¼¸±¾¡£
Ê×ÏÈÎÒÏëÇ¿µ÷µÄÒ»µãÊÇ£¬ÈκÎÒ»±¾ÏµÍ³µÄOracleÊé¼®Ö»ÒªÈÏÕæ¶ÁÏÂÀ´£¬¶¼»áÓв»´íµÄÊÕ»ñ£¬¶ÁÊé×î¼É»äµÄÊÇ»¢Í·Éßβ£¬Ç³³¢ÔòÖ¹¡£
1.µÚÒ»±¾ÒªÍƼö¸ø´ó¼ÒµÄÊÇOracleµÄ¸ÅÄîÊֲᣬÕâ±¾ÊÖ²á ......

OCPÈÏÖ¤¿¼ÊÔÖ¸ÄÏ£¨19£©£º±¸·ÝOracleÊý¾Ý¿â

1¡¢±¸·Ý¹¤¾ß
Ö±½ÓʹÓòÙ×÷ϵͳʵÓóÌÐòcopy¡¢cp¾Í¿ÉÒÔ½øÐб¸·Ý²Ù×÷¡£µ«£¬OracleÇ¿ÁÒ½¨ÒéʹÓÃRecovery Manager£¨»Ö¸´¹ÜÀíÆ÷£¬¼òдRMAN£©¡£
RMANÄܹ»±¸·ÝÊý¾ÝÎļþ¡¢¿ØÖÆÎļþ¡¢¹éµµÈÕÖ¾ÒÔ¼°·þÎñÆ÷²ÎÊýÎļþ£¨spfile£©¡£±¸·Ý¿ÉÒÔ±»Ð´Èë´ÅÅÌ»ò´Å´ø¡£
2¡¢¸ÅÄîÓëÊõÓï
2.1¡¢È«²¿±¸·ÝÓ벿·Ö±¸·Ý
È«²¿±¸·Ý£¨whole backup£©ÊÇËùÓÐÊ ......

Oracle±¸·ÝµÄ·ÖÀà

OracleÊý¾Ý¿âµÄ±¸·Ý·ÖΪһÖÂÐԺͷÇÒ»ÖÂÐÔÁ½ÖÖ¡£
Ò»ÖÂÐÔ±¸·Ý£¬¾ÍÊÇÊý¾Ý¿âÔڹرյÄ״̬Ï»òÕßmount״̬ϽøÐеı¸·Ý¡£ÕâʱºòÓÉÓÚÊý¾Ý¿âûÓдò¿ª£¬Ã»ÓÐÊý¾Ý´¦Àí·¢Éú£¬¿ØÖÆÎļþ¡¢Êý¾ÝÎļþºÍÈÕÖ¾ÎļþÖеÄscn±£³ÖÒ»Ö¡£ËùÒÔ³ÉΪһÖÂÐÔ±¸·Ý¡£
²»Ò»ÖÂÐÔ±¸·Ý£¬¾ÍÊÇÊý¾Ý¿âÔÚopen״̬ϽøÐеı¸·Ý£¬ÕâʱºòÓÉÓÚÊý¾ÝÎļþºÍ¿ØÖÆÎļþÒÔ¼° ......

Oracle´æ´¢¹ý³Ìת³ÉSqlserver´æ´¢¹ý³Ì

Oracle´æ´¢¹ý³Ìת³ÉSqlserver´æ´¢¹ý³Ì
1.ÈÕÆÚת»»
Oracle£º TO_NUMBER(TO_CHAR(SYSDATE, 'YYYYMMDD'))
SqlServer£ºCAST(CONVERT(CHAR(8),GETDATE(), 112) AS INT)
    ×¢£ºÆäÖБYYYYMMDD’¸ñʽ   ¶ÔÓ¦112
2.ROWIDת»»
Oracle£º ROWID
SqlServer: PRIMARY KEY(±íÖ÷¼ü)
3.ROWNUM ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ