My query is
select TO_CHAR('03-JAN-2013', 'D') from dual;
but an error occured as
ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:
But when query changed as select TO_CHAR(sysdate, 'D') from dual;
Result is right answer 5.
I can't understand why it is behaving like this, please help me.
Thanks in advance