ResultSet 2
public static void release(ResultSet rs,
Statement statement,Connection conn) {
if(rs != null) {
try {
rs.close();
} catch (Exception e2) {
// TODO: handle exception
e2.printStackTrace();
}
}
if(conn != null) {
try {
conn.close();
} catch (Exception e2) {
// TODO: handle exception
e2.printStackTrace();
}
}
}

浙公网安备 33010602011771号