Just a small issue with some coding within Oracle SQL Developer. This is my first time away from SQL Server and i'm already confused as to what I have got wrong.
I'm just trying to insert some data into a table but i'm reaching an error that states;Error report - ORA-01861: literal does not match format string
I have the date field in my table set up as data type DATE.
All I am trying to insert is some basic information;INSERT INTO BasicUsers VALUES(2125, 'Dave', 'Forest', 'John', '1998-10-25', 30.54);
I have done some research on the internet and there is nothing solid for me to understand. I have tried altering the date format to YYYY-MON-DD so 1998-Oct-25 but that isn't working either.
Can anyone explain what I have done wrong here and how I can rectify this issue.
Thank you.
'1998-10-25'
is a string, not a date. SQL Server does not support date literals, but Oracle does :DATE '1998-10-25'
. - Thorsten Kettner