myeclipseÖÐÈçºÎÓëSQL server2008 Á¬½Ó
ÔÚ΢Èí¹Ù·½ÏÂÔØÁËÒ»¸ösqljdbc_2.0Çý¶¯°ü£¬ÏëÓÃsqlserver2008Á¬½Ó¡£µ«×ÜÊÇÔÚÁ¬½ÓÊý¾Ý¿âʱÌáʾ³ö´í£¨ÓÐÒ»µãҪ˵Ã÷µÄÊÇÎҵĵçÄÔÀïÓÐÁ½¸öÊý¾Ý¿â°æ±¾Ò»¸öÊÇsqlserver2005(ĬÈϵÄʵÀý)»¹ÓÐÒ»¸ö¾ÍÊÇsqlserver2008(ÐèÒªÖ¸¶¨ÊµÀýÃû³Æ)£©¡£Èç¹ûÓÃsqlserver2005Á¬½Ó¾ÍûÎÊÌ⣬±¨´íÊÇÒòΪÔÚ2005Êý¾Ý¿âÖв»´æÔÚJspDBÊý¾Ý¿â£¨ÎÒÊÇΪÁËÖ¤Ã÷Äܲ»ÄÜÁ¬µ½2008²Å¹ÊÒâÉèÖò»Í¬µÄÊý¾Ý¿âÃûµÄ£© Æäʵ¿ÉÒÔÀí½âΪ£ºÏëÖªµÀÈçºÎÑ¡ÔñÐÔµÄÁ¬½ÓÄĸöʵÀý£¨Êý¾Ý¿â£©£¿ public static Connection getConnection() throws ClassNotFoundException, SQLException{ Connection conn = null; Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); conn = DriverManager.getConnection( //¾ÍÔÚÕâÀïÌáʾ´íÎóÁË "jdbc:sqlserver://localhost:1433; DatabaseName=JspDB", "sa","123456"); return conn; }
¹Ø×¢£¬Ã»Óùý08 Ó¦¸ÃÊÇÄãÁ½¸öÊý¾Ý¿âʵÀýµ¼ÖµÄÎÊÌâ¡£ Ó¦¸ÃжµôÁ½¸öÊý¾Ý¿â´ÓÐÂ×°Ï»úÆ÷¡£ÒýÓà Ӧ¸ÃÊÇÄãÁ½¸öÊý¾Ý¿âʵÀýµ¼ÖµÄÎÊÌâ¡£ Ó¦¸ÃжµôÁ½¸öÊý¾Ý¿â´ÓÐÂ×°Ï»úÆ÷¡£ Á½¸öʵÀý¶¼ÊÇ¿ÉÒÔÕý³£Ê¹ÓõÄŶ£¬ÎªÊ²Ã´ÒªÐ¶ÔØÄØ£¿Ö»ÊÇÓÐʱºòҪѡÔñÒ»ÏÂÊÇʹÓÃÄĸöʵÀý¡££¨ÔÚʹÓÃC#µÄʱºòÊÇÍêÈ«¿ÉÒÔ×Ô¼ºÑ¡ÔñʹÓÃÄĸöʵÀýµÄŶ¡££©ÏÖÔÚÃæÁÙµÄÎÊÌâ¾ÍÊÇÔÚÔõôȥѡÔñÆäÖеÄÒ»¸öʵÀý¡£ û±ØÒªÄÇô¶àʵÀýÁË,08ÄÜÏòϼæÈÝ,°Ñ05ɾÁË°ÉÒýÓà û±ØÒªÄÇô¶àʵÀýÁË,08ÄÜÏòϼæÈÝ,°Ñ05ɾÁË°É ÒòΪÓеÄʱºòÐèÒªÓõ½05µÄʱºò¡£Ò²ÓеÄʱºòÊÇ
Ïà¹ØÎÊ´ð£º
´ó¼ÒºÃ£¬ÇëÎÊÔÚ±íMÖÐÓÐ×ֶΣºa b c d e ÎÒÏë²é³öÆäÖÐÂú×ãÏÂÃæÈÎÒâÒ»ÏîµÄÊý¾Ý£¬1.×Ö¶Îa µÄÖµ²»ÊÇ ¡®Êé»ò±Ê»ò±¾¡¯ÖÐÈÎÒ»£¬2.aΪÊéµÄʱºò×Ö¶Îb,cÊÇ¿Õ;3.µ±aֵΪ±ÊµÄʱºòdÊÇ¿Õ;4.µ±aΪ±¾µÄʱºòb,d,e¶¼ÊÇ¿Õ;5.È ......
ÎÒÏÖÔÚÓÐ2¸ö±íTable1£¬Table2¡£¶ÔÓ¦µÄ×ֶΡ¢Êý¾ÝÈçÏ£º Table1£ºprimary key(a1) a1(char) a2(int) a 10 b & ......
StrSQL="Select * from "&DataTable&" Where ID In("& ID &") and Shop_ID="&Shop_ID&Taxis ÈçºÎ»ñÈ¡ËûµÄ¼Ç¼Êý? @@ROWCOUNT Select count(* ......
Ò»Ö±ÓÃ2000£¬Ïëѧ2008. ÇëÎÊ 1. 2008±È2000ÓÐÄÄЩ¸ü·½±ãµÄÓ¦Óã¿ 2. MSSQL 2008 Ö§³ÖÄÄЩϵͳ£¿ XP¿ÉÒÔ°²×°Â𣿠3. ÔÚÄÄÓÐÏÂÔØ£¬×îºÃÊÇÃâϵÁкţ¬¼´D°æ¡£ лл£¡ ÎÒÒ²ÓÃ2000 1.Ì«¶àÁË ×Ô¼ºÈ¥ ......
ÀýÈçÓÐ2¸ö±í Ò»¸öÊÇÔ±¹¤ÐÅÏ¢±í ±íÀïÓÐÃû×Ö ¹¤×ʵÈ×ֶΠһ¸öÊǹ«Ë¾²ÆÎñ±íÓРÿÔÂ×ÜÖ§³öµÈ×ֶΠÏÖÔÚÒª¸øÒ»¸öÔ±¹¤Õǹ¤×Ê 500RMB ¾ÍҪд2Ìõ UPDATEÓï¾ä£¨¼ÙÉèÖ»ÓÐÁ½ÕÅ±í¡£Êµ¼Ê¿Ï¶¨Òª¸ü¶à£© ÎÊ£ºÈçºÎ ......