JDBC returning empty result set

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

    I then double checked the query (copied straight from debugger) on the database to make sure it returns data.

    I've had engineers with this problem demonstrate this verification in front of me. It turns out they were logged in with one database account in the program and with a different database account in the interactive SQL shell. [This was Oracle 8.]

提交回复
热议问题