ÈçºÎ´´½¨ SQL Server 2005 ÐÂÕË»§£¿
ÈçºÎ´´½¨ SQL Server 2005 ÐÂÕË»§£¿
Ê×ÏÈÒªÉèÖÃSQL Server 2005µÄ·ÃÎÊ·½Ê½
1´ò¿ªSQL Server Management Studio
2·þÎñÆ÷Ãû³ÆÉÏÓÒ¼üÑ¡Ôñ“ÊôÐÔ”£¬´ò¿ª“·þÎñÆ÷ÊôÐÔ”¶Ô»°¿ò£¬ÔÚ“Ñ¡ÔñÒ³”ÀïÑ¡Ôñ“°²È«ÐÔ”£¬ÔÚ“·þÎñÆ÷Éí·ÝÑéÖ¤”ÀïÑ¡Ôñ“SQL ServerºÍWindows Éí·ÝÑé֤ģʽ”£¬µ¥»÷“È·¶¨”£¬Íê³É¡£
È»ºóÌí¼ÓÒ»¸öеĵǽÃûºÍÃÜÂë
1´ò¿ªSQL Server Management Studio
2Ñ¡Ôñ“°²È«ÐÔ→µÇ¼Ãû”£¬ÓÒ»÷“µÇ¼Ãû”£¬Ñ¡Ôñ“н¨µÇ¼Ãû”£¬´ò¿ª“µÇ¼Ãû-н¨”¶Ô»°¿ò£¬ÔÚ“³£¹æ”Ñ¡ÏÖУ¬ÊäÈëµÇ¼Ãû£¬Èç“aaa”,Ñ¡Ôñ“SQL Server Éí·ÝÑéÖ¤”£¬ÊäÈëÃÜÂëºÍÈ·ÈÏÃÜÂ룬ȥµô“Ç¿ÖÆʵʩÃÜÂë²ßÂÔ”¡¢“Ç¿ÖÆÃÜÂë¹ýÆÚ”¡¢“Óû§ÔÚÏ´εǼʱ±ØÐë¸ü¸ÄÃÜÂë”Ç°µÄ¹´£¬Ñ¡ÔñĬÈÏÊý¾Ý¿â£¬Ä¬ÈÏÓïÑÔÑ¡Ôñ“Simplified Chinese”
3Ñ¡Ôñ“·þÎñÆ÷½ÇÉ«”Ñ¡Ï£¬Ñ¡Ôñ“sysadmin”£¬·þÎñÆ÷½ÇÉ«Ãû½âÊÍ¿´SQL Server 2005 ·þÎñÆ÷½ÇÉ«ºÍÊý¾Ý¿â½ÇÉ«ÃûÈ«½â¡£
4Ñ¡Ôñ“Óû§Ó³Éä”Ñ¡Ï£¬Ñ¡ÔñÒªÇóµÄÊý¾Ý¿â£¬¸ù¾Ý¸öÈËÒªÇó¶àÑ¡»òÊǵ¥Ñ¡¡£
5Ñ¡Ôñ“״̬”Ñ¡Ï£¬“ÉèÖÔÀï“ÊÇ·ñÔÊÐíÁ¬½Óµ½Êý¾Ý¿âÒýÇæ”Ñ¡Ôñ“ÊÚÓ蔣¬“µÇ¼”ÀïÑ¡Ôñ“ÆôÓÔ£¬µ¥»÷“È·¶¨”£¬Íê³É¡£
×îºóÍ˳ö·þÎñÆ÷£¬ÓÃн¨µÄµÇ¼Ãû“aaa”µÇ¼·þÎñÆ÷£¬³É¹¦£¡
ÇмǣºÒ»¶¨Òª°ÑSQL Server 2005 ·þÎñÖØÆô²ÅÉúЧ
ÈçºÎÖØÆôSQL Server 2005 ·þÎñ£¿
´ò¿ª‘¿ªÊ¼’£‘ËùÓгÌÐò’£‘Microsoft SQL Server 2005 ’£‘ÅäÖù¤¾ß’£‘SQL Server ÅäÖùÜÀíÆ÷’(SQL Server Configuration Manager)£¬Ñ¡Ôñ“SQL Server 2005 ·þÎñ”£¬¿ÉÒÔÔÚÓÒ±ßÓÒ»÷Ñ¡ÔñÐèÒªÖØÆôµÄ·þÎñ£¬½øÐГֹͣ”¡¢“ÔÝÍ£”¡¢“ÖØÐÂÆô¶¯”µÈ¶¯×÷¡£
Ïà¹ØÎĵµ£º
½ñÌì¿ÉÒÔ»»»»ÄÔ×ÓÁË£¬¶ªµôeclipse£¬ÍæÍæsqlÁË£¬ËäȻֻÊÇÔÚÃüÁîÐд°¿Ú
ÏÈ˵һϽñÌìÎÒÓöµ½µÄÎÊÌâ°É£¬¿ªÊ¼°´ÕÕÀÏʦµÄ²¿Êð£¬×öµÄ¶¼ºÜ˳Àû£¬µ«Êǵ±½¨Á¢ºÃÊý¾Ý¿âÖ®ºó£¬½¨Á¢±í½á¹¹µÄʱºò¾Í³ö´íÁË£¬ÔÒòÊÇÔÚÅäÖÃmysqlµÄʱºò£¬È¨ÏÞÅäÖôíÁË£¬ËùÒÔ˵ǧÀïÖ®µÌ»ÙÓÚÒÏѨ£¬º¦µÄÎÒÕûÁËÒ»¸öÖÐÎ磬ÕâʱÌáʾµÄ´íÎóÊÇERROR 1005: Can't creat ......
Ê×ÏÈÅäÖÃSQLSERVER2005£º
´ò¿ª”Microsoft SQL Server Management Studio“ Ö±½ÓÓÃWindows Óû§Á¬½Ó½øÈ룬ÔÙÔÚ“°²È«ÐÔ”ÖеēµÇ¼Ãû”Äڵēн¨µÇ¼Ãû”£¬Äã¾Í¶ÔÓ¦µÄÌíºÃ“È·¶¨”¾Í¿ÉÒÔÁË¡£
ÔÙÔÚÄã¶ÔÓ¦µÄ“Êý¾Ý¿â”Àï“°²È«ÐÔ” ......
ÍâÁª½Ó:ÍâÁª½Ó¿ÉÒÔÊÇ×óÏòÍâÁª½Ó¡¢ÓÒÏòÍâÁª½Ó»òÍêÕûÍⲿÁª½Ó¡£
ÔÚ from ×Ó¾äÖÐÖ¸¶¨ÍâÁª½Óʱ£¬¿ÉÒÔÓÉÏÂÁм¸×é¹Ø¼ü×ÖÖеÄÒ»×éÖ¸¶¨£º
LEFT JOIN »ò LEFT OUTER JOIN;
×óÏòÍâÁª½ÓµÄ½á¹û¼¯°üÀ ......
֮ǰżȻ¹äÍøÒ³µÄʱºò¿´µ½µÄ,ÏêϸµÄÍøÖ·Íü¼Çcopy¹ýÀ´ÁË£¬ÕæÊDZ§Ç¸¡£¾õµÃ¼òµ¥Ò׶®,ËùÒÔתÁË,ÎûÎû
ÓйطÖÒ³ SQL µÄ×ÊÁϺܶ࣬ÓеÄʹÓô洢¹ý³Ì£¬ÓеÄʹÓÃÓαꡣ±¾È˲»Ï²»¶Ê¹ÓÃÓα꣬ÎÒ¾õµÃËüºÄ×Ê¡¢Ð§Âʵͣ»Ê¹Óô洢¹ý³ÌÊǸö²»´íµÄÑ¡Ôñ£¬ÒòΪ´æ´¢¹ý³ÌÊǾ¹ýÔ¤±àÒëµÄ£¬Ö´ÐÐЧÂʸߣ¬Ò²¸üÁé»î¡£ÏÈ¿´¿´µ¥Ìõ SQL Óï¾äµÄ·ÖÒ³ SQL ......
×öÏîÄ¿ÀïÃæµÄÊý¾Ý¿âÉè¼ÆÁËÁ½¸öÀàÐÍ·ÅÒ»¸ö×Ö¶ÎÀïÃæ,ÎÒÓÖҪͨ¹ý·Ö¿ªµÄÀàÐÍÀ´½øÐвéѯ,Í´¿à°¡,
Á½ÖÖ·½·¨;
1,¶ÁÈ¡µ½»º´æÖÐ×Ô¶¨Òådatatable, ´úÂë¾Í²»ÌùÁË.
²»ÐÀÉÍÕâÖÖ×ö·¨,ÒòΪÎÒÒѾ°ÑÒ³ÃæÉϺܶණÎ÷дÁË,¶¼ÊÇÓеÄSqlÓï¾ä,ÕâÑù¸Äһ϶¼Òª¸ÄÁË.
2.Ö±½ÓÔÚSqlÀïÃ潨ÊÓͼ,
lÓÃSUBSTRING(dbo.K_ProductDtl.Caizhi, 0, CH ......