|
发表于 2004-6-24 13:50:57
|
显示全部楼层
用这个:mysql-connector-java-3.0.8.jar
String url="jdbc:mysql://"+Database_host+"/"+Database_dsn+"?user="+Database_user+"&password="+Database_pswd+"&useUnicode=true&characterEncoding=GBK";
try{
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
con=DriverManager.getConnection(url);
statement=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
} |
|