. Advertisement .
..3..
. Advertisement .
..4..
Hi developer experts, I have a small but frustrating use case, and so far, I couldn’t get my head around this problem & ideal solution. I am running my command and facing one problem with the date format picture ends before converting entire input string. Below is the command I used:
insert into visit
values(123456, '19-JUN-13', '13-AUG-13 12:56 A.M.');
When I run it, I get the following error:
date format picture ends before converting entire input string
I am looking forward to gaining some knowledge from all experts. Thank you, guys!
The cause:
This error happens perhaps due to the valid date format picture including extra data. I think what you are trying to insert is not a date, it is a string. The first part of the format picture is changed into a valid date, but the remaining data is not requested.
Solution:
To fix this error, you have to check
NLS_DATE_FORMAT
, then use the date string that fits with the format.Another way is using the
to_date
function in theINSERT
sentence, such as the following:Date and time informattions are also stored together in Oracle
DATE
.You will need to change the session
You can also try it before you insert