我现在必须同时存在两个resultset,哪有什么办法吗?

解决方案 »

  1.   

    By default, only one ResultSet object per Statement object can be open at the same time. 
     Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each 
     must have been generated by different Statement objects.
    你想要有两个同时存在的resultset,就必须有两个statement。
      

  2.   

    不可以,创建2个statement对象。
    或者用rowset.jar的CachedRowSet