我遇到了一个奇怪的问题,将日期列与 SYSDATE 进行比较会产生以下错误:
01858. 00000 - "a non-numeric character was found where a numeric was expected"
*Cause: The input data to be converted using a date format model was
incorrect. The input data did not contain a number where a number was
required by the format model.
*Action: Fix the input data or the date format model to make sure the
elements match in number and type. Then retry the operation.
我正在重新创建一个物化视图;其中包括一些小的更改,并且每当进程中止时,它总是指向以下派生表查询中的“>=”:
SELECT id,
desc,
start_date,
end_date
FROM T_LIPR_POLICY_ROLE TLPR
WHERE end_date >= SYSDATE
现在 end_date 是一个 DATE 类型,我实际上可以自己执行这个查询,但是每当我尝试在物化视图中运行它时,它总是会因上述错误而中止。尽管上周我能够使用相同的查询创建它。
有任何想法吗?
谢谢,