I am working on oracle table to pull the data. In one of the query i am using 'where' to filtering between date.
To_Date(VDATU,'DD-MON-YYYY') >= '03-Jun-2012'
AND To_Date(VDATU,'dd-mon-yy') <= '04-Sep-2012'
I am getting error,
ORA-01861: literal does not match format string
I tried using ('dd-mm-yy') but still it is giving the same error. what may the problem??
To_Datecalls, or as a result of the implicit conversion of the strings (e.g.'03-Jun-2012') to dates.