文字不匹配

时间:2014-07-01 10:47:50

标签: oracle oracle10g jasper-reports

在oracle数据库的jasper报告中,"

 (c_order.dateordered >= $P{DateOrdered1} OR $P{DateOrdered1} = '1900/01/01')
AND (c_order.dateordered <= $P{DateOrdered2} OR $P{DateOrdered2} = '1900/01/01') "

无法通过抛出Literals不匹配错误。

1 个答案:

答案 0 :(得分:0)

请改为尝试:

(c_order.dateordered >= $P{DateOrdered1} OR $P{DateOrdered1} = to_date('1900/01/01','YYYY/MM/DD'))
AND (c_order.dateordered <= $P{DateOrdered2} OR $P{DateOrdered2} = to_date('1900/01/01','YYYY/MM/DD'))