SQL Server ExpressµÄʹÓÃ
½ñÌìÖÕÓÚÖªµÀSQL 2005 ÔõôÓÃÁË£¬¸Ð¾õÒÔÇ°Ì«ÀÁÁË£¬Ã÷Ã÷ÏëÖªµÀµÄ¶«Î÷¿ÉÊÇÒòΪÒѾÓÐsql2000¾ÍÀÁµÃ²é¡£ÖªÊ¶ÕⶫÎ÷ÊÇÈÕ»ýÔÂÀ۵ģ¬ÕæÕýµ½ÓõÄʱºò²ÅÈ¥²¹¾ÍÒѾÍíÁË¡£
ÒÔÇ°°²×°VS2005µÄʱºò¾Í¿´µ½°²×°ÍêÁËÒÔºó»áÓÐÒ»¸öSQL2005£¬¿ÉÊÇ×Ô¼º²»»áÓã¬ÄǸöʱºòÖ»ÓГÅäÖù¤¾ß”£¬²»Ïñsql2000°²×°ÒÔºó»áÓÐÆóÒµ¹ÜÀíÆ÷ÕâЩºÜÖ±¹ÛµÄ½çÃæ¡£ÆäʵÄØ£¬SQL2005µÄ·þÎñÒѾ°²×°ºÃÁË£¬Ö»ÊÇûÓÐÒ»¸ö²Ù×÷µÄͼÐνçÃæ¶øÒÑ¡£¾ÍÏñMySQL°²×°ÁËÒÔºóÎÒÃdz£³£»á°²×°Ò»¸önavicatÒ»Ñù£¬ÕâÀïsql2005µÄͼÐβÙ×÷½çÃæ½Ð×öMicrosoft SQL Server Management Studio Express ÎÒÃÇ¿ÉÒÔÔÚÍøÉÏÏÂÔØÒ»¸ö°²×°£¬ÕâÑù¾Í¿ÉÒÔ²Ù×÷sql2005ÁË¡£
¶øÇÒÎÒ·¢ÎÒÔÚsql2000Ï´´½¨µÄÊý¾Ý¿â£¬ÔÚ½øÈësql2005ÒÔºóÒ²Äܹ»ÕÒµ½£¬ÒòΪÕâÁ½¸ö°æ±¾Êǹ«ÓÃÊý¾Ý¿âµÄ¡£
Microsoft SQL Server 2005 Express Edition ¼ò½é£º
Microsoft SQL Server 2005 Express Edition (SQL Server Express) ÊÇÒ»ÖÖÃâ·Ñ¡¢Ò×ÓõÄÇáÁ¿°æ SQL Server 2005£¬¾ßÓпìËÙÇÒÒ×ÓÚÕÆÎÕµÄÌص㣬¿ÉÓÃÓÚ¿ìËÙ¿ª·¢ºÍ²¿Êð¶¯Ì¬Êý¾ÝÇý¶¯µÄÓ¦ÓóÌÐò¡£SQL Server Express Ìṩǿ´ó¶ø¿É¿¿µÄÊý¾Ý¹ÜÀí¹¤¾ß£¬Ëü¹¦Äܷḻ£¬Äܹ»±£»¤Êý¾Ý²¢Ìá¸ßÐÔÄÜ¡£ËüÊÊÓÃÓÚǶÈëʽӦÓóÌÐò¿Í»§¶Ë¡¢ÇáÐÍ Web Ó¦ÓóÌÐòÒÔ¼°±¾µØÊý¾Ý´æ´¢Çø¡£SQL Server Express ¾ßÓÐÒ×ÓÚ²¿ÊðÒÔ¼°¿ÉÒÔ¿ìËÙÉè¼ÆÔÐ͵ÄÌص㣬Äú¿ÉÒÔÎÞ³¥»ñÈ¡²¢¿ÉÒÔËæÓ¦ÓóÌÐòÃâ·ÑÔÙ·Ö·¢¡£Èç¹ûÐèÒª¸ü¶àµÄ¸ß¼¶Êý¾Ý¿â¹¦ÄÜ£¬¿É½«SQL Server Express ÎÞ·ìÉý¼¶µ½¸ü¸´Ô SQL Server °æ±¾¡£
Microsoft SQL Server 2005 Express EditionÏÂÔصØÖ·£º
http://download.microsoft.com/download/C/E/6/CE626F95-EBD3-4AB8-AA35-C1BFAF98B7D5/SQLEXPR32_CHS.EXE
Microsoft SQL Server Management Studio Express ÏÂÔصØÖ·£º
http://download.microsoft.com/download/5/4/F/54F476B4-2348-4D4A-B705-0C8C9AB2A14A/SQLServer2005_SSMSEE.msi
Ïà¹ØÎĵµ£º
ʹÓà SQL Server ʼþ̽²éÆ÷µÄ·½°¸
ʹÓà SQL Server ProfilerµÄµÚÒ»²½ÊÇÈ·¶¨¼àÊÓ SQL Server ʵÀýµÄÔÒò¡£±¾Ö÷ÌâÌÖÂÛʹÓà SQL Server ProfilerÊÕ¼¯¸ú×ÙÐÅÏ¢µÄµäÐÍ·½°¸¡£
ʹÓà SQL Server ProfilerµÄµäÐÍ·½°¸°üÀ¨£º
²éÕÒÖ´ÐÐÇé¿ö×î²îµÄ²éѯ¡£
ÀýÈ磬¿ÉÒÔ´´½¨Ò»¸ö²¶»ñÓë TSQL ºÍ Stored Procedure ʼþÀࣨRPC:Completed ......
DBOÊÇÿ¸öÊý¾Ý¿âµÄĬÈÏÓû§£¬¾ßÓÐËùÓÐÕßȨÏÞ£¬¼´DbOwner
ͨ¹ýÓÃDBO×÷ΪËùÓÐÕßÀ´¶¨Òå¶ÔÏó£¬Äܹ»Ê¹Êý¾Ý¿âÖеÄÈκÎÓû§ÒýÓöø²»±ØÌṩËùÓÐÕßÃû³Æ¡£
±ÈÈ磺ÄãÒÔUser1µÇ¼½øÈ¥²¢½¨±íTable£¬¶øδָ¶¨DBO£¬
µ±Óû§User2µÇ½øÈ¥Ïë·ÃÎÊTableʱ¾ÍµÃÖªµÀÕâ¸öTableÊÇÄãUser1½¨Á¢µÄ£¬ÒªÐ´ÉÏUser1.Table£¬Èç¹ûËû²»ÖªµÀÊÇÄ㽨µÄ£¬Ôò·ÃÎÊ» ......
ÎÊ£ºÔõÑùÔÚÒ»¸öUPDATEÓï¾äÖÐʹÓñíBµÄÈý¸öÁиüбíAÖеÄÈý¸öÁУ¿
¡¡¡¡´ð£º¶ÔÕâ¸öÎÊÌ⣬Äú¿ÉÒÔʹÓÃÇ¿´óµÄ¹Øϵ´úÊý¡£±¾Ò³ÖеĴúÂë˵Ã÷ÁËÈçºÎ×éºÏʹÓÃfrom×Ó¾äºÍJOIN²Ù×÷£¬ÒÔ´ïµ½ÓÃÆäËû±íÖÐÊý¾Ý¸üÐÂÖ¸¶¨ÁеÄÄ¿µÄ¡£ÔÚÉè¼Æ¹Øϵ±í´ïʽʱ£¬ÄúÐèÒª¾ö¶¨ÊÇ·ñÐèÒªµ¥Ò»ÐÐÆ¥Åä¶à¸öÐУ¨Ò»¶Ô¶à¹Øϵ£©£¬»òÕßÐèÒª¶à¸öÐÐÆ¥Åä±»Áª½Ó±íÖеĵ¥Ò» ......
OracleÖг£ÓõÄÃüÁîºÍº¯Êý£¬×ö¸öÕûÀí£¬ÒÔ±¸ÒÔºóÓõ½£¬·½±ã²éÔÄ¡£
³£ÓÃÃüÁ
Á¬½Ósqlplus
ÃüÁîÐÐÏÂÔËÐÐcmd½øÈ룬ÈçÒÔsysģʽµÇ½£¬ÃüÁîÈçÏ£º
(1).sqlplus "sys/zhb126 as sysdba"
(2).sqlplus/nolog connect sys/zhb126 as sysdba
(3).sqlplus scott ......
sql unionÓ÷¨ºÍsql union allÓ÷¨,sql unionЧÂÊ
1¡¢sql unionÓ÷¨
sql unionÔÚ²éѯÖпÉÒÔ½«Á½¸öSQL Óï¾äµÄ½á¹ûºÏ²¢ÆðÀ´¡£Èç¹ûÕâÑù¿´µÄ»°£¬ UNION ¸ú JOIN ÊÇÏàËƵģ¬Á½¸öÖ¸Á¿ÉÒÔÓɶà¸ö±í¸ñÖÐߢȡ×ÊÁÏ¡£
sql unionµÄÒ»¸öÏÞÖÆÊÇÁ½¸ö SQL Óï¾äËù²úÉúµÄÀ¸Î»ÐèÒªÊÇͬÑùµÄ×ÊÁÏÖÖÀà¡£ÁíÍ⣬µ±ÎÒÃÇÓà UNIONÕâ¸öÖ¸Áîʱ£¬Î ......