如果PreparedStatement用完了立刻关掉-控制游标数,那么由它得到的ResultSet还有用吗?
ps = conn_omp.prepareStatement(sql);
rs = ps_omp.executeQuery();
try{
ps.close
}catch(SQLException e){
...
}
现在rs还有用吗?
ps = conn_omp.prepareStatement(sql);
rs = ps_omp.executeQuery();
try{
ps.close
}catch(SQLException e){
...
}
现在rs还有用吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货