rs = stmt.executeQuery(sql);
publicResultSetloadResultSet(Stringsql){try{rs=stmt.executeQuery(sql);returnrs;}catch...
public ResultSet loadResultSet(String sql) {
try {
rs = stmt.executeQuery(sql);
return rs;
} catch (SQLException e) {
System.out.println("SQLResultSet数据库链接失败");
}
return rs;
报错时总是说SQLResultSet数据库链接失败 展开
try {
rs = stmt.executeQuery(sql);
return rs;
} catch (SQLException e) {
System.out.println("SQLResultSet数据库链接失败");
}
return rs;
报错时总是说SQLResultSet数据库链接失败 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询