JDBC returning empty result set

前端 未结 14 1872
醉话见心
醉话见心 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:28

    Yeah, I had the same problem as the OP. It happens when you have two or more open connections with the database on the same user. For example one connection in SQL Developer and one connection in Java. The result is always an empty resultset.

    EDIT: Also, I noticed that it happens when you execute procedure or insert in the databse and you don't commit your transactions.

提交回复
热议问题