81,094
社区成员
发帖
与我相关
我的任务
分享
boolean hasResult = rs.next();
if(hasResult) {
do {
rs.getString(1);
} while(rs.next());
} else {
//No Result
}
while(stmt.getMoreResults()){
resultSet = stmt.getResultSet();
while(resultSet.next()){
....
}
}
boolean hasRs = stat.execute(sql);
while(hasRs || stat.getUpdateCount() >= 0) {
if(hasRs) {
rs = stat.getResult();
//read from rs
}
hasRs = stat.getMoreResults();
}