如果
db.endSelect()关闭ResultSet,为什么不删除它(在
selectInAsending()方法中)?
您可以使用以下
getPendingSalesOrderIDs()方法关闭ResultSet :
ResultSet r = null;try { ResultSet r = salesOrder.selectInAsending("soNo", "productionStatus = 'pending' and formatID='Zn-Al'", "soNo");} catch (SQLException e) {} finally { if (r != null) { try { r.close(); } catch (SQLException e) { } }}


