原网址: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();

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-11-01
  • 2022-02-14
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-24
  • 2021-05-13
  • 2021-12-06
  • 2021-06-18
相关资源
相似解决方案