Skip to content
Advertisement

Insert query returns error : SQL Error: ORA-01861: literal does not match format string

I have this simple enough insert query but i have no idea why it is returning an error. i can see the error comes from the row Birthay, if i remove it the insert is done ok. My query:

it is returning this error

Thank you in advance

Advertisement

Answer

Just use the column name in the list of columns and a DATE literal in the VALUES clause:

You could also use:

in the values clause.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement