我想是在调用这个方法时报的错 :
public ResultSet getSet(String sql,String []param){
try {
con=this.getCon();
pstmt=con.prepareStatement(sql);
for(int i=0;i<param.length;i++){
pstmt.setString(i+1, param[i]);
}
rs=pstmt.executeQuery();
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
我给的是:String sql = "select * from board";
String[] param = null;
不知道这样写对不对,希望圈圈姐姐和大家帮我看下吧 谢谢