在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不匹配错误。
答案 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'))