JDBC returning empty result set

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

    in my case the query which worked in sql developer didn't work in JAVA.

    *select * from table where process_date like '2014-08-06%'* (worked in sql developer)
    

    formating process_date to char helped to make it work in JAVA

    *select * from table where to_char(process_date) = '06-AUG-14'*
    

提交回复
热议问题