SQLException异常没有捕获,把你的
ResultSet.next(); //指针移动
String str = ResultSet.getString("..."); //赋值语句
代码写到
try{
ResultSet.next(); //指针移动
String str = ResultSet.getString("..."); //赋值语句
}catch(SQLException e){}
ResultSet.next(); //指针移动
String str = ResultSet.getString("..."); //赋值语句
代码写到
try{
ResultSet.next(); //指针移动
String str = ResultSet.getString("..."); //赋值语句
}catch(SQLException e){}
//Class.forName("com.codestudio.sql.PoolMan").newInstance();
Class.forName("org.gjt.mm.mysql.Driver");
}catch(ClassNotFoundException e){
System.out.println(e.toString());
}catch(java.lang.InstantiationException e){
}catch(java.lang.IllegalAccessException e){}try{
//jdbc语句
}catch(SQLException e){}
也可以function() throws ClassNotFoundException,SQLException{}