JDBC returning empty result set

前端 未结 14 1812
醉话见心
醉话见心 2020-12-15 06:15

I\'m using JDBC for very simple database connectivity.

I have created my connection/statement and executed a query. I check the query object of the statement in the

相关标签:
14条回答
  • 2020-12-15 06:42

    In java.sql.connection you should call this method after you create your connection :

    conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
    

    maybe there is a similar method in Oracle.

    0 讨论(0)
  • 2020-12-15 06:43

    The resultSet returns false even though you should get row values for the query and rs.next() gives false because you might have not written commit; on your sql terminal for the query. After doing this you will get rs.next() as True.

    0 讨论(0)
提交回复
热议问题