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

sqlµÄjoin

¶ÔÓÚÎÒÃÇÕâЩ½öÓõ½sql¼òµ¥²éѯ¿ª·¢ÈËÔ±À´Ëµ£¬¿ÉÄÜÖ»Á˽âһЩ»ù±¾µÄsqlº¯ÊýºÍ<>=ÕâÑùµÄÌõ¼þÓï¾ä£¬½ñÌìÒ»¸öÅóÓÑÎÊÆð£ºÄ¬ÈϵÄjoinÊÇouter»¹ÊÇinner¡£¡£¡£¡£
ÌصØÊÕ¼¯ÁËһЩ¶«Î÷£¬Ò²Ìù³öÀ´ºÍ´ó¼Ò·ÖÏíÏ£º
joinleft outer join=left join ,   right outer join=right join,     inner join=join.
CROSS JOIN           µÑ¿¨¶û³Ë»ý£¨ËùÓпÉÄܵÄÐжԣ©
INNER JOIN           ½ö¶ÔÂú×ãÁ¬½ÓÌõ¼þµÄCROSSÖеÄÁÐ
LEFT OUTER JOIN           Ò»¸ö±íÂú×ãÌõ¼þµÄÐУ¬ºÍÁíÒ»¸ö±íµÄËùÓÐÐÐ
RIGHT OUTER JOIN           ÓëLEFTÏàͬ£¬µ«Á½¸ö±íµÄ½ÇÉ«»¥»»
FULL OUTER JOIN         LEFT OUTER ºÍ RIGHT OUTERÖÐËùÓÐÐеij¬¼¯


Ïà¹ØÎĵµ£º

sql ¸ñʽ»¯ ÈÕÆÚº¯Êý

Sql Server ÖжÔÓÚʱ¼ä×ֶεĸñʽ»¯º¯ÊýÖ§³Ö¾Í²»¼°OracleµÄ·½±ã£¬ÏÂÃæÁгöSql ServerÖг£ÓõÄʱ¼ä¸ñʽ»¯º¯Êý¡£ÆäÖГGETDATE()”ΪSql ServerµÄϵͳʱ¼äº¯Êý£¬´Ë´¦Ö»×öÑÝʾÓá£
Select CONVERT(varchar(100), , 0): 05 16 2006 10:57AM
Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06
Select CONVERT( ......

SQL ServerºÍOracleµÄ³£Óú¯Êý±È½Ï

---------Êýѧº¯Êý ---------------
¡¡¡¡1.¾ø¶ÔÖµ
¡¡¡¡S:select abs(-1) value
¡¡¡¡O:select abs(-1) value from dual
¡¡¡¡2.È¡Õû(´ó)
¡¡¡¡S:select ceiling(-1.001) value
¡¡¡¡O:select ceil(-1.001) value from dual
¡¡¡¡3.È¡Õû£¨Ð¡£©
¡¡¡¡S:select floor(-1.001) value
¡¡¡¡O:select floor(-1.001) value from ......

sql server 2008 ´´½¨Óû§

 
ÕâÁ½ÌìÓõ½ÁË sql server 2008 £¬Ö÷ÒªÊǽ¨Êý¾Ý¿â£¬½¨±íºÍ´´½¨Óû§¡£
 
ÔÚ “Windows Éí·ÝÑéÖ¤”   Ï£¬´´½¨ÁËÊý¾Ý¿âºÍ Óû§£¬È»ºóÓà SQL Server Éí·ÝÑéÖ¤  µÇ¼ £¬È´Ìáʾ ´íÎó 18452£¬
ÕÒÁËÒ»ÏÂ×ÊÁÏ ¸Ä·¨ ÈçÏ£º
[ÎÞ·¨Á¬½Óµ½·þÎñÆ÷ ·þÎñÆ÷£ºÏûÏ¢18452£¬ ¼¶±ð16£¬×´Ì¬1 [Microsof ......

Ìá¸ßÊý¾Ý¿âSQLÓï¾ä²éѯËٶȵļ¸¸ö·½·¨£¨×ª£©


Ìá¸ßÊý¾Ý¿âSQLÓï¾ä²éѯËٶȵļ¸¸ö·½·¨
1¡¢³ÌÐòÖУ¬
±£Ö¤ÔÚʵÏÖ¹¦ÄܵĻù´¡ÉÏ£¬¾¡Á¿¼õÉÙ¶ÔÊý¾Ý¿âµÄ·ÃÎÊ´ÎÊý£»
ͨ¹ýËÑË÷²ÎÊý£¬¾¡Á¿¼õÉÙ¶Ô±íµÄ·ÃÎÊÐÐÊý,×îС»¯½á¹û¼¯£¬´Ó¶ø¼õÇáÍøÂ縺µ££»
Äܹ»·Ö¿ªµÄ²Ù×÷¾¡Á¿·Ö¿ª´¦Àí£¬Ìá¸ßÿ´ÎµÄÏìÓ¦Ëٶȣ»
ÔÚÊý¾Ý´°¿ÚʹÓÃSQLʱ£¬¾¡Á¿°ÑʹÓõÄË÷Òý·ÅÔÚÑ¡ÔñµÄÊ×ÁУ»
Ëã·¨µÄ½á¹¹¾¡Á¿¼òµ¥ ......

Oracle SQL_TRACEʹÓÃС½á

Ò»¡¢¹ØÓÚ»ù´¡±í
Oc_COJ^c680758
rd-A6z\&[1R1] H680758
Oracle
10G֮ǰ£¬ÆôÓÃAUTOTRACE¹¦ÄÜÐèÒªÊÖ¹¤´´½¨plan_table±í£¬´´½¨½Å±¾Îª$ORACLE_HOME/rdbms/admin
/utlxplan.sql¡£µ«ÔÚ10gÖУ¬ÒѾ­Ä¬ÈÏ´´½¨ÁËPLAN_TABLE$µÄ»ù±í£¬²¢ÒÔpublicÓû§´´½¨ÁËÏàÓ¦µÄͬÒå´ÊPUBLIC¡£ITPUB¸öÈË¿Õ¼äDR#IlHrT
ITPUB¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ