當的鉅額表的概念(2B +行)某些分區證明工作,我們想出了select語句的一些奇怪的行爲此查詢:甲骨文12C PARTITION BY距離間隔一個月ORA-01841
select * from date_test
WHERE (
JOURNAL_DATE < TO_DATE('20061201','YYYYMMDD')
OR
JOURNAL_DATE > TO_DATE('20061231','YYYYMMDD')
) ;
我得到以下錯誤:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
01841. 00000 - "(full) year must be between -4713 and +9999, and not be 0
*Cause: Illegal year entered
*Action: Input year in the specified range
的 「有趣」 的日ing是,如果您刪除OR的任一側的一個子句,查詢似乎會啓動OK。當然查詢在非分區表中正常工作。
任何幫助或指針,不勝感激。
使用? –
試試這個(無證)提示'/ * + NO_EXPAND_TABLE(date_test)* /' –
Oracle版本是12.1.0.2.170117。 –