SQLException: Exhausted Resultset

前端 未结 3 2262
刺人心
刺人心 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 22:52

    use the varchar data type instead of char in the oracle database.

    if you use char then actual size with blank space of database is compared with query parameter

    and query doesnt get exucuted that is result gets false.

    So use the varchar datatype in oracle database.

提交回复
热议问题