当我尝试使用手动值运行此SQL时,一切正常
SELECT *
FROM epayment_application
WHERE time_stamp
BETWEEN
TO_DATE('03/07/2017', 'dd/mm/yyyy')
AND
TO_DATE('05/07/2017', 'dd/mm/yyyy')
当我用参数替换值并尝试查看数据时
SELECT *
FROM epayment_application
WHERE time_stamp
BETWEEN
TO_DATE(:DateFrom, 'dd/mm/yyyy')
AND
TO_DATE(:DateTo, 'dd/mm/yyyy')
它提供无法加载XML错误。参数类型是日期,格式也是dd / mm / yyyy。
我做错了什么?请帮忙。
答案 0 :(得分:1)
从BIP中的查询中删除TO_DATE,如下所示。
SELECT *
FROM epayment_application
WHERE time_stamp
BETWEEN
:DateFrom
AND
:DateTo