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 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( ......
---------Êýѧº¯Êý ---------------
¡¡¡¡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 £¬Ö÷ÒªÊǽ¨Êý¾Ý¿â£¬½¨±íºÍ´´½¨Óû§¡£
ÔÚ “Windows Éí·ÝÑéÖ¤” Ï£¬´´½¨ÁËÊý¾Ý¿âºÍ Óû§£¬È»ºóÓà SQL Server Éí·ÝÑéÖ¤ µÇ¼ £¬È´Ìáʾ ´íÎó 18452£¬
ÕÒÁËÒ»ÏÂ×ÊÁÏ ¸Ä·¨ ÈçÏ£º
[ÎÞ·¨Á¬½Óµ½·þÎñÆ÷ ·þÎñÆ÷£ºÏûÏ¢18452£¬ ¼¶±ð16£¬×´Ì¬1 [Microsof ......
Ìá¸ßÊý¾Ý¿âSQLÓï¾ä²éѯËٶȵļ¸¸ö·½·¨
1¡¢³ÌÐòÖУ¬
±£Ö¤ÔÚʵÏÖ¹¦ÄܵĻù´¡ÉÏ£¬¾¡Á¿¼õÉÙ¶ÔÊý¾Ý¿âµÄ·ÃÎÊ´ÎÊý£»
ͨ¹ýËÑË÷²ÎÊý£¬¾¡Á¿¼õÉÙ¶Ô±íµÄ·ÃÎÊÐÐÊý,×îС»¯½á¹û¼¯£¬´Ó¶ø¼õÇáÍøÂ縺µ££»
Äܹ»·Ö¿ªµÄ²Ù×÷¾¡Á¿·Ö¿ª´¦Àí£¬Ìá¸ßÿ´ÎµÄÏìÓ¦Ëٶȣ»
ÔÚÊý¾Ý´°¿ÚʹÓÃSQLʱ£¬¾¡Á¿°ÑʹÓõÄË÷Òý·ÅÔÚÑ¡ÔñµÄÊ×ÁУ»
Ëã·¨µÄ½á¹¹¾¡Á¿¼òµ¥ ......
Ò»¡¢¹ØÓÚ»ù´¡±í
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¸ ......