This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
while(rs.next())如果我必须通过相同的不同原因彼此循环两次ResultSet,我该怎么做ResultSet才能不自动关闭并防止'ResultSet is closed Exception'?我尝试resultset.first()在第一个循环后将光标移回第一行,但即使在此语句中也会触发此错误!