原网址:http://blog.csdn.net/sku0923/article/details/1722370

一个stmt多个rs进行操作引起的ResultSet已经关闭错误

:  stmt=conn.createStatement();  

rst.last();

ResultSet

closed  

:
 stmt=conn.createStatement();  

rs.last();//对rs的操作应马上操作,操作完后再从数据库得到rst,再对rst操作

ResultSet  object  if  an  open  one  exists.      

多个stmt对应各自的

rs. stmt=conn.createStatement();

stmt2=conn.createStatement();

rs.last();

rst.last();

相关文章: