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

JAVA Á¬½Ó SQLServer 2000.

JAVA Á¬½Ó SQLServer 2000 ËùÐèÒªµÄÈý¸öJAR°ü¡£
http://download.csdn.net/source/2283940
----------------
Code:
------------------------
  Connection conn = null;
  Statement sta = null;
  try {
   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
   if (conn == null || conn.isClosed()) {
    conn = DriverManager.getConnection(
      "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs","sa", "");
   }
   sta = conn.createStatement();
   ResultSet rs = sta.executeQuery("select * from jobs ");
   while (rs.next()) {
    System.out.print(rs.getInt(1) + "\t");
    System.out.print(rs.getString(2) + "\t");
    System.out.print(rs.getString(3) + "\t");
    System.out.println(rs.getString(4));
    System.out.println("--------------------------");
   }
  } catch (Exception e) {
   System.out.println(e);
  }


Ïà¹ØÎĵµ£º

javaÓëjavac

javacÊDZàÒ룬JavaÊÇÖ´ÐС£javacºóÃæµÄÃû×ÖÒªÓÐ.java¡£javaºóÃæÖ±½Ó¸úÃû×Ö£¬Ã»Óкó׺Ãû¡£
±ØÐëÏȵ½ÎļþµÄ·¾¶ÏÂÔÙ½øÐбàÒëÖ´ÐС£
×¢ÒâÎļþÀïÊÇ·ñʹÓÃÁ˰ü£¬Èçpackage lee£»
Èç¹ûʹÓÃÁ˵ϰ£¬±ØÐë¼ÓÉϰüµÄÃû×Ö£¬Èç javac lee.LocaleList.java
java lee.LocaleList
Èç¹ûÐèÒª´«µÝ²ÎÊý£¬ÔòÖ»ÐèÔÚjava xxx ºó±ß¸úÉϾÍÐÐÁË¡£ ......

SqlServer²Ù×÷XMLѧϰ


ÔÚ SQLServer2005 ÖжԠXML µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË query(),value(),exist(),modify(),nodes() µÈº¯Êý¡£
¹ØÓÚ xml £¬ÄÑÒÔÀí½âµÄ²»ÊÇ SQLServer ÌṩµÄº¯Êý£¬¶øÊǶԠxml ±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»ÊdzõÌ ......

Java³õʼ»¯Ë³Ðò

ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
 class
 InitialOrderTest {   
  
    //&nb ......

JAVA¾­µä»ù´¡ÎÊÌâÖ® ³éÏóÀàÓë½Ó¿Ú

Ò»¡¢³éÏóÀà×¢ÒâÊÂÏ
1£¬³éÏóÀàÖпÉÒÔÓÃ0+¸ö³éÏó·½·¨¡£
2£¬ÓгéÏó·½·¨µÄµÄÀà±ØÐëÊdzéÏóÀà¡£
3£¬³éÏóÀàÅÉÉúµÄ·Ç³éÏó×ÓÀà±ØÐëʵÏÖ³éÏóÀàÖж¨ÒåµÄËùÓгéÏó·½·¨¡£
4£¬³éÏóÀ಻ÄÜ´´½¨¶ÔÏó¡£
5£¬abstract ²»ÄÜÓëfinal²¢ÁÐÐÞÊÎͬһ¸öÀà
6£¬abstract²»ÄÜÓëprivate,static ,final,native²¢ÁÐÐÞÊÎͬһ·½·¨¡£
package com.wens ......

JAVAµÄÈÝÆ÷ List,Map,Set

JAVAµÄÈÝÆ÷---List,Map,Set
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Collection½Ó¿Ú
¡¡¡¡CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£Ò»Ð© CollectionÔÊÐíÏà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ