私はOracleに少し悩まされています
以下の私のSQL
select * from orders where 
trunc(ordered_date)
between
to_date('01-JAN-12') 
and 
to_date('07-JAN-12')
Ordered_date は DATE データ型です
以下のエラーが発生していますか。
Error starting at line 1 in command:
select * from orders
where 
trunc(ordered_date)
between 
to_date('01-JAN-12') 
and 
to_date('07-JAN-12')
Error report:
SQL Error: 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
mu コードでこのエラーを引き起こしている原因がわかりません。
どんな入力でも素晴らしいでしょう。
ありがとう !!!