锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品无码久久久久sm,国产精品嫩草影院久久,日本免费久久久久久久网站http://m.shnenglu.com/fenglin/category/14921.html鍒涙柊銆佸垱鎰忋佹寫鎴?/description>zh-cnFri, 29 Apr 2011 03:28:51 GMTFri, 29 Apr 2011 03:28:51 GMT60- 甯哥敤鏁版嵁搴撶殑JDBC榪炴帴浠g爜http://m.shnenglu.com/fenglin/articles/134492.html椋庢灄椋庢灄Wed, 24 Nov 2010 03:38:00 GMThttp://m.shnenglu.com/fenglin/articles/134492.htmlhttp://m.shnenglu.com/fenglin/comments/134492.htmlhttp://m.shnenglu.com/fenglin/articles/134492.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/134492.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/134492.html
- 1銆丱racle8/8i/9i鏁版嵁搴擄紙thin妯″紡錛?/strong>
- Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
- String url="jdbc:oracle:thin:@localhost:1521:orcl";
-
- String user="test";
- String password="test";
- Connection conn= DriverManager.getConnection(url,user,password);
-
- 2銆丏B2鏁版嵁搴?/strong>
- Class.forName("com.ibm.db2.jdbc.app.DB2Driver ").newInstance();
- String url="jdbc:db2://localhost:5000/sample";
-
- String user="admin";
- String password="";
- Connection conn= DriverManager.getConnection(url,user,password);
-
- 3銆丼ql Server7.0/2000/2005鏁版嵁搴?nbsp;
- /*浣跨敤鐨勬槸4.0椹卞姩錛屾JAR鍖呭悕縐頒負sqljdbc4.jar錛屾枃浠跺ぇ灝忎負 524 KB (537,303 瀛楄妭) 錛屾枃浠朵慨鏀規椂闂翠負2010騫?#8206;4鏈?#8206;19鏃ワ紝10:12:00*/
- public static void main(String[] args) {
String driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver";
String url="jdbc:sqlserver://192.168.1.113:3329;DatabaseName=kinsys";
String username="sa";
String password="";
Connection con = null;
try{
Class.forName(driverClassName);
con = DriverManager.getConnection(url, username, password);
System.out.println("Connection successed.");
}catch(Exception e){
e.printStackTrace();
}
}
-
-
- 4銆丼ybase鏁版嵁搴?/strong>
- Class.forName("com.sybase.jdbc.SybDriver").newInstance();
- String url =" jdbc:sybase:Tds:localhost:5007/myDB";
-
- Properties sysProps = System.getProperties();
- SysProps.put("user","userid");
- SysProps.put("password","user_password");
- Connection conn= DriverManager.getConnection(url, SysProps);
-
- 5銆両nformix鏁版嵁搴?/strong>
- Class.forName("com.informix.jdbc.IfxDriver").newInstance();
- String url =
- "jdbc:informix-sqli:
- user=testuser;password=testpassword";
-
- Connection conn= DriverManager.getConnection(url);
-
- 6銆丮ySQL鏁版嵁搴?/span>
- /*org.gjt.mm.mysql.Driver鏄棭鏈熺殑椹卞姩鍚嶇О錛屽悗鏉ュ氨鏀瑰悕涓篶om.mysql.jdbc.Driver錛岀幇鍦ㄤ竴鑸兘鎺ㄨ崘浣跨敤 com.mysql.jdbc.Driver銆傚湪鏈鏂扮増鏈殑mysql jdbc椹卞姩涓紝涓轟簡淇濇寔瀵硅佺増鏈殑鍏煎錛屼粛鐒朵繚鐣欎簡org.gjt.mm.mysql.Driver錛屼絾鏄疄闄呬笂 org.gjt.mm.mysql.Driver涓皟鐢ㄤ簡com.mysql.jdbc.Driver錛屽洜姝ょ幇鍦ㄨ繖涓や釜椹卞姩娌℃湁浠涔堝尯鍒?/span>*/
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- String url ="jdbc:mysql://localhost/myDB?user=soft&password=soft1234&useUnicode=true&characterEncoding=8859_1" //瑙e喅涓枃鏄劇ず闂
-
- Connection conn= DriverManager.getConnection(url);
-
- 7銆丳ostgreSQL鏁版嵁搴?/strong>
- Class.forName("org.postgresql.Driver").newInstance();
- String url ="jdbc:postgresql://localhost/myDB"
-
- String user="myuser";
- String password="mypassword";
- Connection conn= DriverManager.getConnection(url,user,password);

]]> - 浜嬪姟騫跺彂闂澶勭悊http://m.shnenglu.com/fenglin/articles/129001.html椋庢灄椋庢灄Fri, 08 Oct 2010 01:00:00 GMThttp://m.shnenglu.com/fenglin/articles/129001.htmlhttp://m.shnenglu.com/fenglin/comments/129001.htmlhttp://m.shnenglu.com/fenglin/articles/129001.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/129001.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/129001.html鏁版嵁搴撲簨鍔$殑鍥涗釜鍩烘湰鎬ц川錛圓CID錛?span class=Apple-converted-space>
1. 鍘熷瓙鎬э紙Atomicity錛?br>
浜嬪姟鐨勫師瀛愭ф槸鎸囦簨鍔′腑鍖呭惈鐨勬墍鏈夋搷浣滆涔堝叏鍋氾紝瑕佷箞鍏ㄤ笉鍋氾紙all or none錛夈?span class=Apple-converted-space>
2. 涓鑷存э紙Consistency錛?br>鍦ㄤ簨鍔″紑濮嬩互鍓嶏紝鏁版嵁搴撳浜庝竴鑷存х殑鐘舵侊紝浜嬪姟緇撴潫鍚庯紝鏁版嵁搴撲篃蹇呴』澶勪簬涓鑷存х姸鎬併?span class=Apple-converted-space>
鎷塊摱琛岃漿璐︽潵璇達紝涓鑷存ц姹備簨鍔$殑鎵ц涓嶅簲鏀瑰彉A銆丅 涓や釜璐︽埛鐨勯噾棰濇誨拰銆傚鏋滄病鏈夎繖縐嶄竴鑷存ц姹傦紝杞處榪囩▼涓氨浼氬彂鐢熼挶鏃犱腑鐢熸湁錛屾垨鑰呬笉緲艱岄鐨勭幇璞°備簨鍔″簲璇ユ妸鏁版嵁搴撲粠涓涓竴鑷存х姸鎬佽漿鎹㈠埌鍙﹀涓涓竴鑷存х姸鎬併?span class=Apple-converted-space>
3. 闅旂鎬э紙Isolation錛?br>浜嬪姟闅旂鎬ц姹傜郴緇熷繀欏諱繚璇佷簨鍔′笉鍙楀叾浠栧茍鍙戞墽琛岀殑浜嬪姟鐨勫獎鍝嶏紝涔熷嵆瑕佽揪鍒拌繖鏍蜂竴縐嶆晥鏋滐細瀵逛簬浠諱綍涓瀵逛簨鍔1 鍜?T2錛屽湪浜嬪姟 T1 鐪嬫潵錛孴2 瑕佷箞鍦?T1 寮濮嬩箣鍓嶅凡緇忕粨鏉燂紝瑕佷箞鍦?T1 瀹屾垚涔嬪悗鎵嶅紑濮嬫墽琛屻傝繖鏍鳳紝姣忎釜浜嬪姟閮芥劅瑙変笉鍒扮郴緇熶腑鏈夊叾浠栦簨鍔″湪騫跺彂鍦版墽琛屻?span class=Apple-converted-space>
4. 鎸佷箙鎬э紙Durability錛?br>涓涓簨鍔′竴鏃︽垚鍔熷畬鎴愶紝瀹冨鏁版嵁搴撶殑鏀瑰彉蹇呴』鏄案涔呯殑錛屽嵆渚挎槸鍦ㄧ郴緇熼亣鍒版晠闅滅殑鎯呭喌涓嬩篃涓嶄細涓㈠け銆傛暟鎹殑閲嶈鎬у喅瀹氫簡浜嬪姟鎸佷箙鎬х殑閲嶈鎬с?span class=Apple-converted-space>
浜嬪姟騫跺彂鍙兘瀛樺湪濡備笅鍑犱釜闂錛?br>A錛夌涓綾諱涪澶辨洿鏂幫紙Lost Update錛夛細榪欑闂鍙瓨鍦ㄤ簬涓嶆敮鎸佷簨鍔$殑鏁版嵁搴撶郴緇熶腑銆?br>B錛夎剰璇伙紙Dirty Read錛夛細璇諱簡鍏跺畠浜嬪姟娌℃湁鎻愪氦鐨勪簨鍔℃暟鎹?/strong>
C錛変笉鍙噸澶嶈錛坣on-repeatable read)錛氬湪鍚屼竴涓簨鍔″墠鍚庤鍒扮殑浜嬪姟鏁版嵁涓嶄竴鑷淬?/strong>
D錛夌浜岀被涓㈠け鏇存柊錛坰econd update problem錛夈愪笉鍙噸澶嶈鐨勭壒孌婃儏鍐點?br>E錛夊夠璇伙紙phantom read錛夛細閲嶇偣璇寸殑鏄彃鍏ャ佸垹闄ゆ搷浣滐紝鍦ㄨ鐨勮繃紼嬩腑錛屽彟涓涓簨鍔″彲鑳藉湪鎻掑叆鎴栬呭垹闄ゆ搷浣溿?br>鍏朵腑B銆丆銆丒涓夌鏈涓洪噸瑕併?/span>

]]> - JDBC榪炴帴SQL SERVER2005澶辮觸http://m.shnenglu.com/fenglin/articles/126545.html椋庢灄椋庢灄Mon, 13 Sep 2010 17:24:00 GMThttp://m.shnenglu.com/fenglin/articles/126545.htmlhttp://m.shnenglu.com/fenglin/comments/126545.htmlhttp://m.shnenglu.com/fenglin/articles/126545.html#Feedback0http://m.shnenglu.com/fenglin/comments/commentRss/126545.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/126545.html
1
Connection conn = null;
2
Statement st = null;
3
response.setContentType("text/html;charset=gb2312");
4
PrintWriter out = response.getWriter();
5
try
{
6
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
7
conn = DriverManager
8
.getConnection(
9
"jdbc:sqlserver://MY-NOTEBOOK;DatabaseName=BOOKS",
10
"sa", "********");
11
st = conn.createStatement();
12
st.executeUpdate("insert into tblBookInfo(bookBarCode,bookName,bookAuthor,bookPrice,bookIntroduce) values('"
13
+ bookBarCode
14
+ "','"
15
+ bookName
16
+ "','"
17
+ bookAuthor
18
+ "'," + bookPrice + ",'" + bookIntroduce + "')");
19
conn.close();
20
out.println("鍥句功娣誨姞鎴愬姛!");
21
} catch (Exception e)
{
22
out.println("鍙戠敓濡備笅閿欒:<br>");
23
out.println(e.getMessage());
24
}
鎶ュ涓嬮敊璇細
閫氳繃绔彛 1433 榪炴帴鍒頒富鏈?MY-NOTEBOOK 鐨?TCP/IP 榪炴帴澶辮觸銆傞敊璇?“Connection refused: connect銆傝楠岃瘉榪炴帴灞炴э紝騫舵鏌?SQL Server 鐨勫疄渚嬫鍦ㄤ富鏈轟笂榪愯錛屼笖鍦ㄦ绔彛鎺ュ彈 TCP/IP 榪炴帴錛岃繕瑕佺‘淇濋槻鐏娌℃湁闃繪鍒版绔彛鐨?TCP 榪炴帴銆?#8221;銆?/span>
浠嶴QL Server Management Studio閲屽彲浠ユ甯哥櫥褰曟暟鎹簱錛岀粡榪囦竴緲葷櫨搴︺丟oogle鍚庯紝鏈灉銆?br>緇忓垎鏋愬彂鐢熸鏁呴殰鐨勫師鍥犱負鏁版嵁搴撶郴緇熺殑TCP/IP緗戠粶鍗忚鏈惎鍔ㄦ墍瀵艱嚧銆?br>瑙e喅鏂規硶錛?br>鎵撳紑SQL Server Configuration Manager鎺у埗鍙扮晫闈紝浠庡乏杈圭殑鏍戝艦鑿滃崟閲岄夋嫨 SQL Server 2005緗戠粶閰嶇疆 -> MSSQLSERVER 鐨勫崗璁紝灝嗗彸杈瑰垪鍑虹殑 TCP/IP 鍜孨amed Pipes 閮借緗負鍚姩鐘舵侊紝鍐嶉噸鍚惎鍔⊿QL Server(MSSQLSERVER)鏈嶅姟錛屾祴璇曢氳繃銆?/u>
鍙︼細
conn = DriverManager.getConnection( "jdbc:sqlserver://MY-NOTEBOOK:1433;DatabaseName=BOOKS", "sa", "********");
榪欓噷鍐欎笉鍐欑鍙e彿閮藉彲浠ヨ繛鎺ユ垚鍔熴?/u>
濡傛灉鎯充嬌鐢↗DBC榪炴帴SQL SERVER2005錛岄渶瑕佷笅杞絁DBC 3.0 For SQL SERVER2005 (http://www.microsoft.com/downloads/details.aspx?FamilyID=a737000d-68d0-4531-b65d-da0f2a735707&displayLang=zh-cn),瀹夎瀹屽悗錛岃繘鍏ュ叾瀹夎鐩綍X:\Program Files\Microsoft SQL Server JDBC Driver 3.0\sqljdbc_3.0\chs錛屽皢sqljdbc4.jar鏂囦歡澶嶅埗鍒?br>Tomcat瀹夎鐩綍鐨凩ib鏂囦歡澶歸噷鍗沖彲姝e父浣跨敤銆?br>
嫻嬭瘯鐜錛歐IN7,JDK1.6.0_21,JRE6,Apache Tomcat7.02,SQL SERVER2005,JDBC 3.0 For SQL SERVER2005
濡傛湁涓嶆槑鐧界殑鍦版柟錛岃緇欐垜鐣欒█錛?

]]> - WIN7涓嬭澆瀹夎SQL Server2005http://m.shnenglu.com/fenglin/articles/126500.html椋庢灄椋庢灄Mon, 13 Sep 2010 04:05:00 GMThttp://m.shnenglu.com/fenglin/articles/126500.htmlhttp://m.shnenglu.com/fenglin/comments/126500.htmlhttp://m.shnenglu.com/fenglin/articles/126500.html#Feedback2http://m.shnenglu.com/fenglin/comments/commentRss/126500.htmlhttp://m.shnenglu.com/fenglin/services/trackbacks/126500.html瀹夎SQL Servers005瀹屾垚鍚庯紝寮濮?紼嬪簭-SQL Server 2005錛屼笅闈㈡病鏈夋壘鍒癝QL Server Management Studio銆?br>瑙e喅鍔炴硶錛?br>Vista浠ヤ笂鐨刉indows涓渶瑕佽SSMS Sp2浠ヤ笂鐨勭増鏈紝
http://www.microsoft.com/downloads/details.aspx?familyid=6053c6f8-82c8-479c-b25b-9aca13141c9e&displaylang=zh-cn#filelist
瀹夎瀹屾垚鍚庯紝SQL Server Management Studio紼嬪簭鍑虹幇浜嗭紝鐧誨綍鏁版嵁搴擄紝涓鍒囨甯搞?/span>

]]>
人妻系列无码专区久久五月天|
99久久久精品免费观看国产|
国产精品一区二区久久|
久久精品国产久精国产|
香港aa三级久久三级|
伊人久久精品无码av一区
|
国产巨作麻豆欧美亚洲综合久久|
亚洲精品高清一二区久久|
亚洲国产精品久久66|
久久青青草视频|
久久青青国产|
亚洲国产精品久久|
久久婷婷国产剧情内射白浆|
久久AAAA片一区二区|
久久久综合九色合综国产|
久久人人爽人人人人爽AV
|
久久精品国产亚洲av影院|
精品国产乱码久久久久软件|
日本一区精品久久久久影院|
777午夜精品久久av蜜臀|
狠狠色伊人久久精品综合网|
欧洲人妻丰满av无码久久不卡|
看久久久久久a级毛片|
久久天天日天天操综合伊人av|
久久夜色精品国产噜噜噜亚洲AV
|
久久人人爽人人爽人人爽|
国产精品伦理久久久久久|
久久99国内精品自在现线|
久久久久久国产a免费观看黄色大片
|
国产精自产拍久久久久久蜜|
久久精品中文无码资源站|
日韩欧美亚洲国产精品字幕久久久
|
色婷婷噜噜久久国产精品12p|
曰曰摸天天摸人人看久久久|
国产成人精品久久一区二区三区|
丁香五月网久久综合|
国产精品女同久久久久电影院
|
亚洲综合熟女久久久30p|
伊人伊成久久人综合网777|
婷婷久久综合九色综合绿巨人|
久久久久国产一级毛片高清板|