查询子表出现错误com.ibm.db2.jcc.b.SqlException: This method should only be called on ResultSet objects that are scrollable(type TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_INSENSITIVE)

解决方案 »

  1.   

    把你的代码贴出来啊!
    看exception好像是ResultSet 里你设置了参数
      

  2.   

    ResultSet  的游标类型设置有问题吧
      

  3.   

    按以下方式创建Statement,可以设定ResultSet可以滚动和更新
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
      

  4.   

    这个是正确的,楼主应该看看createStatement这个API,他有个好几个参数。