我一直有一個奇怪的問題,其中一個日期列SYSDATE的比較產生以下錯誤:比較日期列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.
我正在重新創建一個MATERIALIZED VIEW;其中包括一些小的變化,並且每當過程在下面的派生表查詢中止它總是指向「> =」:
SELECT id,
desc,
start_date,
end_date
FROM T_LIPR_POLICY_ROLE TLPR
WHERE end_date >= SYSDATE
現在END_DATE是一種類型DATE和我實際上可以通過本身執行該查詢,但每當我試圖在物化視圖中運行它時,它總是會因上面的錯誤而中止。儘管上週我能夠用相同的查詢創建它。
任何想法?
謝謝,
你可以發佈所有相關的DDL嗎?您的物化視圖是否有可能被更改,並且它不再具有與查詢相同的數據類型? – 2013-02-09 05:41:45