ORA-01830: date format picture ends before converting entire input string
I am confused. Which picture is the error message talking about? All I provided was a date.
oracleoracle-11g-r2
ORA-01830: date format picture ends before converting entire input string
I am confused. Which picture is the error message talking about? All I provided was a date.
Best Answer
The "format picture" refers to the format mask. If you are doing an explicit conversion using the
TO_DATE
function, the format picture is the second argumenti.e.
In this case, the format picture is the "YYYY-MM-DD". This expression raises the ORA-01830 error because the input string contains more data than the format picture is capable of handling.
If, on the other hand, you are doing an implicit conversion, the format picture refer's to the session's
NLS_DATE_FORMAT
which Oracle uses in its own implicitTO_DATE
call.