锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产二区不卡,亚洲一区二区三区不卡国产欧美,亚洲日本一区二区三区在线不卡http://www.aygfsteel.com/sutao/category/25330.html鐢ㄦ枃瀛楄褰曞涔犵殑浣撻獙錛?/description>zh-cnTue, 28 Aug 2007 00:50:00 GMTTue, 28 Aug 2007 00:50:00 GMT60- 鎴戠殑鎵歸噺鎿嶄綔http://www.aygfsteel.com/sutao/archive/2007/08/28/140262.html鑻忛唲鑻忛唲Tue, 28 Aug 2007 00:44:00 GMThttp://www.aygfsteel.com/sutao/archive/2007/08/28/140262.htmlhttp://www.aygfsteel.com/sutao/comments/140262.htmlhttp://www.aygfsteel.com/sutao/archive/2007/08/28/140262.html#Feedback0http://www.aygfsteel.com/sutao/comments/commentRss/140262.htmlhttp://www.aygfsteel.com/sutao/services/trackbacks/140262.html
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class test {
/*
String sDBDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url ="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=jihedb";
String user = "sa";
String password = "517747";
Connection conn = null;
PreparedStatement pstmt=null;
ResultSet rs = null;
public test() {
try {
Class.forName(sDBDriver);
} catch (java.lang.ClassNotFoundException e)
{
System.err.println("DBconn(): " + e.getMessage());
}
}
*/
String url="jdbc:jtds:sqlserver://localhost:1433/jihedb";
String username="sa";
String password="517747";
static Connection conn=null;
PreparedStatement pstmt=null;
//鏋勯犲嚱鏁?br> public test()
{
try{
Class.forName("net.sourceforge.jtds.jdbc.Driver");
DriverManager.registerDriver(new net.sourceforge.jtds.jdbc.Driver());
conn=DriverManager.getConnection(url,username,password);
}catch(ClassNotFoundException e)
{
e.printStackTrace();
}catch(SQLException e)
{
e.printStackTrace();
}
}
//main()鍑芥暟
public static void main(String args[]) throws SQLException{
test m=new test();
PreparedStatement ps =conn.prepareStatement( "INSERT into code values (?,?)");
Date t=(Calendar.getInstance()).getTime();
Set s=new HashSet();
Date tt=(Calendar.getInstance()).getTime();
System.out.print("鎻掑叆寮濮?+tt);
int count=0;
//LinkedList v=new LinkedList();
ArrayList v=new ArrayList();
for(int i=1;i<1000000;i++){
v.add(i);
}
System.out.println("闀垮害"+v.size());
Iterator vv=v.iterator();
while(vv.hasNext()){
ps.setObject(1,vv.next());
ps.setString(2, "0");
ps.addBatch();
count+=1;
if(count%1000==0)
{
ps.executeBatch();
}
}
ps.executeBatch();
Date ttt=(Calendar.getInstance()).getTime();
System.out.print("緇撴潫"+ttt);
}
}

]]>
主站蜘蛛池模板:
古丈县|
忻城县|
佛教|
论坛|
湘潭县|
通化市|
呼图壁县|
会理县|
襄城县|
普定县|
双江|
竹山县|
阳山县|
咸阳市|
和政县|
孟村|
疏勒县|
晋江市|
济南市|
牡丹江市|
平原县|
陆丰市|
绵阳市|
广州市|
昌邑市|
景宁|
临泽县|
永州市|
辽阳市|
临安市|
冕宁县|
嵊州市|
杂多县|
金寨县|
西藏|
穆棱市|
马尔康县|
德惠市|
邵武市|
得荣县|
深水埗区|