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

sql serverºÍoracleµÄÇø±ð

1£®OracleΪ¿Í»§¶Ë¿ªÆô»á»°ÓÐÁ½ÖÖ·½Ê½£º¹²Ïí·þÎñºÍרÓ÷þÎñ¡£ÔÚרÓ÷þÎñÇé¿öÏ£¬¼àÌýÆ÷ΪÁ¬½ÓÇëÇó´´½¨Ð½ø³Ì£¨Unix»·¾³ÏÂÊÇProcess£¬WindowsÏÂÎÒÏëÓ¦¸ÃÊÇThread°É£©£»¹²Ïí·þÎñÇé¿öÏ£¬¼àÌýÆ÷½«¿Í»§ÇëÇ󽻸øDispatcher£¬ÓÉDispatcher°²ÅŶà¿Í»§µÄ×÷Òµ¡£SQL ServerÔÚĬÈÏÇé¿öÏÂ×Ô¶¯Îª¿Í»§¶ËÁ¬½Ó´´½¨Ị̈߳¬µ±Óзdz£¶àµÄ¿Í»§Á¬½Óʱ£¬SQL Server¿ÉÒÔʹÓÃÏ̳߳عÜÀí¶à»á»°£¬ÕâÀàËÆÓÚOracleµÄ¹²Ïí·þÎñ¡£ 
  2£®OracleµÄÄÚ´æ¹ÜÀí·ÖÈý¿é£ºSGA¡¢PGA¡¢UGA£»ÔÚMSDNÖв¢Ã»ÓÐÌá¼°ÔõÑù¿ØÖÆSQL ServerµÄÄÚ´æ·ÖÅ䣬ֻÊÇÌáµ½SQL ServerµÄÐéÄâµØÖ·¿Õ¼ä·Ö³É»º³å³ØÕ¼ÓÿռäºÍÆäÓà¿Õ¼ä£¬ÇÒSQL ServerÓж¯Ì¬ÄÚ´æ¹ÜÀí»úÖÆ¡£ 
  3. OracleµÄʵÀýÒ»´ÎÖ»ÄܹÜÀíÒ»¸öÊý¾Ý¿â£¬Êý¾Ý¿âÔÚ¼¯Èº»·¾³Ï¿ÉÓɶà¸öʵÀý¹ÜÀí¡£¶øSQL Serverµ¥¸öʵÀýÒ»´ÎÄܹÜÀí¶à¸öÊý¾Ý¿â¡£OracleÊý¾Ý¿â´æ´¢·½Ê½ÓÐOSÎļþ¡¢Âã·ÖÇø¡¢ASMµÈ£¬SQL ServerµÄÊý¾Ý¿â´æ´¢Ö»ÄÜÊÇϵͳÎļþ¡£ 
  4. OracleÊý¾Ý¿â°üº¬±í¿Õ¼ä£¬±í¿Õ¼ä¿ÉÒÔʹÓöà¸öÎļþ´æ´¢Êý¾Ý£¬±í¿Õ¼ä¾ÍÀàËÆÓÚSQL ServerÖеÄÎļþ×é¡£ÇøÊÇÎïÀíÁ¬ÐøÉÏÁ¬½ÓµÄ´æ´¢¿Õ¼ä£¬ÇøÖаüÀ¨×îСI/Oµ¥Î»——¿é£¨Oracle£©»òÒ³£¨SQL Server£©¡£µ«SQL ServerÒ³´óСÊÇ8KB£¬Çø°üº¬8¸öÒ³£»Oracle²»Í¬±í¿Õ¼ä¿ÉÒÔÓв»Í¬µÄ¿é´óС£¬ÇøµÄ´óСºÍ±£»¤¿éµÄÊýÁ¿Ò²²»¹Ì¶¨¡£SQL ServerµÄÒ³ÓÉÒ»¸öÊý¾Ý¿â¶ÔÏó¶ÀÕ¼£¬ÎïÀí´¢´æµÄÊý¾Ý¿â¶ÔÏóÖ»ÓÐË÷ÒýºÍ±íÁ½ÖÖ£»¶øOracleÖеĶÎÓÉÊý¾Ý¿â¶ÔÏó¶¨Ò壬ÇÒÆä´æ´¢µÄ¶ÔÏó¸´Ôӵö࣬Óбí¶Î¡¢Ë÷Òý¶Î¡¢»Ø¹ö¶Î¡¢ÁÙʱ¶ÎµÈµÈ£¬ËùÒÔÔÚÒ»¸ö¾Û´Ø¶ÎÖеĿé¿ÉÄܱ»¶à¸ö±íʹÓᣠ
  5. OracleʹÓÃFREELIST¹ÜÀí¿ÉÒԿ飬ͨ¹ýÉèÖÃPCTFREEºÍPCTUSED¿ØÖÆ¿ìÔÚºÎÖÖÌõ¼þÏ¿ÉÓã»SQL ServerʹÓÃGAM¡¢SGAN¼Ç¼¿ÉÓÃÒ³£¬Ê¹ÓÃPFS¸ú×ÙÒ³µÄʹÓÃ×´¿ö¡£ 
  6. SQL ServerµÄ±íÓÐÁ½ÖÖ·½Ê½×éÖ¯Êý¾ÝµÄÎïÀí´æ´¢£¬Ò»ÖÖÊÇÎÞÐòµÄ¶Ñ×éÖ¯£¬ÕâOracleÊÇÀàËƵģ»ÁíÒ»ÖÖÊÇÓɾ۴ØË÷Òý¾ö¶¨Êý¾ÝÅÅÐò·½Ê½£¬OracleÒ²¿ÉÓÐË÷Òý×éÖ¯·½Ê½£¬µ«²»Í¬ÓÚSQL Server£¬ËüÒÀ¼üÅÅÐòÊý¾Ý£¬²»Ôö¼ÓÒ»¸öË÷ÒýÓÃÓÚ¾Û´Ø£¬²»»áÓжîÍâµÄ¿ªÏú¡£´ËÍ⣬OracleµÄ¾Û´Ø±íÊǶà±í´æ´¢ÔÚÏàͬ¶ÎÉÏ£¬ÏñSQL ServerµÄ»ìºÏÇø¿ÉÒÔ°üº¬²»Í¬±íµÄÒ³£¬µ«OracleµÄ¾Û´Ø±íÊÇÒ»×麬ÓÐÏàͬÁеıí¿ÉÒÔ´¢´æÔÚÏàͬµÄ¿éÖУ¬¾Û´Ø±íµÄ¿ÉÒÔÓÐË÷Òý»òHash·½Ê½×éÖ¯Êý¾Ý 
&n


Ïà¹ØÎĵµ£º

OracleÊý¾Ý¿âµÄµ¼Èëµ¼³ö

oracleÊý¾Ý¿âµÄµ¼ÈëÓëµ¼³öÊÇ×öΪһÃûʵʩ¹¤³Ìʦ»òά»¤¹¤³Ìʦÿ¾­³£Òª×öµÄ¹¤×÷¡£µ±Êý¾Ý¿â½á¹¹ÐèÒª×ö±ä»¯µÄʱºò£¬ÎÒÃÇÒ»°ãÏȽ«Êý¾Ý×ö±¸·Ý£¬´ËʱÎÒÃÇÐèҪʹÓõ½OracleµÄµ¼³ö¹¦ÄÜ¡£µ±ÎÒÃÇÔÚ×öµ¼ÈëµÄʱºò³ö´í»òÕßÎÒÃǵÄÊý¾ÝÔâµ½´íÎóɾ³ýµÄʱºò£¬ÎÒÃÇÐèÒª»Ö¸´Êý¾Ý¿â£¬ÄÇÎÒÃÇÐèҪʹÓõ½µ¼ÈëµÄ¹¦ÄÜ¡£ÏÖÔÚÒ²Óкܶ๦ÄÜÄܹ»°ïÎÒÃÇ×öµ½ ......

Oracleѧϰ±Ê¼ÇÖ®´æ´¢¹ý³ÌÓ뺯Êý

        PL/SQLÊǶÔOracleÊý¾Ý¿â½øÐвÙ×÷µÄÒ»ÖÖ¹ý³ÌÐÔ±à³ÌÓïÑÔ£¬Ëü¿ÉÒÔÔÚSQL * plusÖÐÖ´ÐУ¬Ò²¿ÉÒÔǶÈëµ½JAVA»òÕßC++ÖС£Æä»ù±¾×é³ÉΪ£º
DECLARE
...
BEGIN
...
EXCEPTION
...
END
¿ÉÓÃÀ´½«¶ÔÊý¾Ý¿âµÄ¸÷ÖÖ²Ù×÷·âװΪһ¸ö´úÂë¿é£¬ÎªÁ˼ÓÇ¿¿ÉÖØÓÃÐÔ£¬»¹¿É½«Öظ´ÐÔ´úÂëд³Éº¯ÊýÓë´æ´¢¹ý³Ì£¬Ó ......

Àí½âORACLEÊý¾Ý¿â×Ö·û¼¯

Ò»£®ÒýÑÔ
   
ORACLE
Êý¾Ý¿â×Ö·û¼¯£¬¼´Oracle
È«Çò»¯Ö§³Ö(Globalization Support)
£¬»ò¼´¹ú¼ÒÓïÑÔÖ§³Ö£¨NLS
£©Æä×÷ÓÃÊÇÓñ¾¹úÓïÑԺ͸ñʽÀ´´æ´¢¡¢´¦ÀíºÍ¼ìË÷Êý¾Ý¡£ÀûÓÃÈ«Çò»¯Ö§³Ö£¬ORACLE
ΪÓû§Ìṩ×Ô¼ºÊìϤµÄÊý¾Ý¿âĸÓï»·¾³£¬ÖîÈçÈÕÆÚ¸ñʽ¡¢Êý×Ö¸ñʽºÍ´æ´¢ÐòÁеȡ£Oracle
¿ÉÒÔÖ§³Ö¶àÖÖÓïÑÔ¼°×Ö·û¼ ......

DBMS_SQL°üʵÏÖ¶¯Ì¬SQL

.ÔÚ²éѯÖлáÓöµ½ UNION ALL,ËüµÄÓ÷¨ºÍunionÒ»Ñù,Ö»²»¹ýunionº¬ÓÐdistinctµÄ¹¦ÄÜ,Ëü»á°ÑÁ½ÕűíÁËÖظ´µÄ¼Ç¼ȥµô,¶øunion all²»»á,ËùÒÔ´ÓЧÂÊÉÏ,union all »á¸ßÒ»µã.
2.union all ÊÇ°´Ô­ÏÈ˳ÐòÅÅÁеģ¬union °ÑÁ½ÕűíÖеÄÖظ´Êý¾ÝÈ¥µôºó»¹½øÐÐÁËÖØÐÂÅÅÐò
ÉùÃ÷£º´ËÎÄÀ´Ô´ÓÚÍø·£¡
ÄÚÈÝÕªÒª£ºÔÚPL/SQL¿ª·¢¹ý³ÌÖУ¬Ê¹ÓÃSQL£¬ ......

sql ÃüÃûÎÊÌâ

ÕýÈ·µÄ£ºselect isnull(money,0) from (select  sum(money) as money,3 as b from zhangbenjilu where datepart(month,usedatetime)=3) as a
´íÎóµÄ£ºselect isnull(money,0) from (select  sum(money) as money,3  from zhangbenjilu where datepart(month,usedatetime)=3) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ