SQLException: Exhausted Resultset

前端 未结 3 2272
刺人心
刺人心 2020-12-11 22:40

I have a problem with my JDBC code. This is the relevant code:

/** method for checking password into the Oracle database */
public String CheckUserDB(String          


        
3条回答
  •  情书的邮戳
    2020-12-11 23:14

    The problem might not be with the code but instead could be the database. Double check that the TABLE IS NOT EMPTY. You get this error if the table is empty. Keep in mind that databases like Oracle require a commit after all your insert, update, alter statements .Your changes might not be visible outside the database till you run a commit over the your db, I was having this problem for quite a long time. I kept on checking the table with select statement but the problem with my oracle db was that I had not issued a commit over my db.

提交回复
热议问题