我的查询是这样的:
where (:startDate is null or :endDate is null or DDATE between :startDate AND :endDate)
AND (:startDate is null or (:endDate is not null or DDATE between :startDate AND :date))
我从 ajax 日期选择器获取startDate
和获取。是系统日期,我得到这样的:endDate
date
Date utiDate = new Date();
当我执行我的查询时,我得到了错误:
java.sql.SQLException: ORA-00932: inconsistent datatypes: expected DATE got BINARY