Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 ORA-01861: literal does not match format string

Author  Topic 

thinkman
Starting Member

1 Post

Posted - 2009-08-13 : 13:03:18
Hi all the SQL experts out there, I am a newbie looking for some help. (please dont' laugh at my questions... :p)

I am trying to insert some data into a table store in an Oracle database server by using Oracle SQL Developer

INSERT INTO retail_channel (EVENTTIME)
VALUES ('2009-01-28 07:14:13);

I am getting this error msg: An error was encountered performing the requested operation:
ORA-01861: literal does not match format string.

This is the table struture:

CREATE TABLE "RETAIL_CHANNEL"
( "LOCATIONID" VARCHAR2(20 BYTE),
"EVENTTIME" DATE,
...................................

If I exclude the time, then it works fine. However, it's crucial for me to include the time. Please advise, and thank you all in advance.


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-13 : 13:04:45
Since you are using Oracle, you should post your question on an Oracle site as this site is for Microsoft SQL Server. You'll get much better and faster help from a forum that specifically deals with the technology you are using?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -