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);
}
Ïà¹ØÎĵµ£º
javacÊDZàÒ룬JavaÊÇÖ´ÐС£javacºóÃæµÄÃû×ÖÒªÓÐ.java¡£javaºóÃæÖ±½Ó¸úÃû×Ö£¬Ã»Óкó׺Ãû¡£
±ØÐëÏȵ½ÎļþµÄ·¾¶ÏÂÔÙ½øÐбàÒëÖ´ÐС£
×¢ÒâÎļþÀïÊÇ·ñʹÓÃÁ˰ü£¬Èçpackage lee£»
Èç¹ûʹÓÃÁ˵ϰ£¬±ØÐë¼ÓÉϰüµÄÃû×Ö£¬Èç javac lee.LocaleList.java
java lee.LocaleList
Èç¹ûÐèÒª´«µÝ²ÎÊý£¬ÔòÖ»ÐèÔÚjava xxx ºó±ß¸úÉϾÍÐÐÁË¡£ ......
ÔÚ SQLServer2005 ÖÐ¶Ô XML µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË query(),value(),exist(),modify(),nodes() µÈº¯Êý¡£
¹ØÓÚ xml £¬ÄÑÒÔÀí½âµÄ²»ÊÇ SQLServer ÌṩµÄº¯Êý£¬¶øÊÇ¶Ô xml ±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»ÊdzõÌ ......
ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
class
InitialOrderTest {
//&nb ......
Ò»¡¢³éÏóÀà×¢ÒâÊÂÏ
1£¬³éÏóÀàÖпÉÒÔÓÃ0+¸ö³éÏó·½·¨¡£
2£¬ÓгéÏó·½·¨µÄµÄÀà±ØÐëÊdzéÏóÀà¡£
3£¬³éÏóÀàÅÉÉúµÄ·Ç³éÏó×ÓÀà±ØÐëʵÏÖ³éÏóÀàÖж¨ÒåµÄËùÓгéÏó·½·¨¡£
4£¬³éÏóÀ಻ÄÜ´´½¨¶ÔÏó¡£
5£¬abstract ²»ÄÜÓëfinal²¢ÁÐÐÞÊÎͬһ¸öÀà
6£¬abstract²»ÄÜÓëprivate,static ,final,native²¢ÁÐÐÞÊÎͬһ·½·¨¡£
package com.wens ......
JAVAµÄÈÝÆ÷---List,Map,Set
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHashtable
©ÀHashMap
©¸WeakHashMap
Collection½Ó¿Ú
¡¡¡¡CollectionÊÇ×î»ù±¾µÄ¼¯ºÏ½Ó¿Ú£¬Ò»¸öCollection´ú±íÒ»×éObject£¬¼´CollectionµÄÔªËØ£¨Elements£©¡£Ò»Ð© CollectionÔÊÐíÏà ......