如果在rs.next()之前关闭了Statement或PreparedStatement,会导致下面的异常:

java.sql.SQLException: 关闭的语句: next

 

如果在rs.next()之前关闭了Connection,会导致下面的异常:

java.sql.SQLException: 关闭的连接: next问题

 

如果在rs.next()之前关闭了ResultSet,会导致下面的异常:

java.sql.SQLException: 关闭的 Resultset: next

相关文章: