JDBC returns an empty ResultSet (rs.isBeforeFirst() == true) although the table isn't empty

后端 未结 2 607
忘掉有多难
忘掉有多难 2021-01-18 08:19

I am trying to complete a DB access method for my Web Service. The service and the DB access methods work fine for all other tables in the DB, but this one particular method

2条回答
  •  臣服心动
    2021-01-18 08:51

    Use if (!rs.isBeforeFirst()) instead of if (rs.isBeforeFirst()). your problem would be solved.

提交回复
热议问题