Home » SQL & PL/SQL » SQL & PL/SQL » Insertion error (forms6i, oracle 10g)
Insertion error [message #647794] Mon, 08 February 2016 04:02 Go to next message
snsiddiqui
Messages: 172
Registered: December 2008
Senior Member
I am facing below error in the simple insert statement, kindly resolve.

ERROR at line 1:
ORA-00917: missing comma

Insert into setups_setup(id,code,type,descr,to_date(entdate,'dd-mon-yyyy hh24:mi:ss'))
values ('55','07','ISITE','sdfsd','08-Feb-2016 02:56:57')

Re: Insertion error [message #647797 is a reply to message #647794] Mon, 08 February 2016 04:10 Go to previous messageGo to next message
ricky_s
Messages: 21
Registered: February 2016
Location: New Delhi, India
Junior Member
is there a column in the table named "to_date(entdate,'dd-mon-yyyy hh24:mi:ss')"
Re: Insertion error [message #647799 is a reply to message #647797] Mon, 08 February 2016 05:29 Go to previous messageGo to next message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

Laughing

Re: Insertion error [message #647800 is a reply to message #647799] Mon, 08 February 2016 05:51 Go to previous messageGo to next message
gazzag
Messages: 1119
Registered: November 2010
Location: Bedwas, UK
Senior Member
+1 Surprised
Re: Insertion error [message #647804 is a reply to message #647800] Mon, 08 February 2016 10:01 Go to previous messageGo to next message
Bill B
Messages: 1971
Registered: December 2004
Senior Member
As they noted, change it to

Insert into setups_setup(id,code,type,descr,entdate)
values ('55','07','ISITE','sdfsd',to_date('08-Feb-2016 02:56:57','dd-mon-yyyy hh24:mi:ss'))
Re: Insertion error [message #647814 is a reply to message #647794] Tue, 09 February 2016 02:28 Go to previous messageGo to next message
msol25
Messages: 396
Registered: June 2011
Senior Member
Dear,

This is very Basic Question.


INSERT INTO setups_setup
         (  id
           ,code
           ,type
           ,descr
           ,entdate
         )
        VALUES 
        ( '55'
         ,'07'
         ,'ISITE'
         ,'sdfsd'
         ,TO_DATE('08-Feb-2016 02:56:57','DD-Mon-YYYY HH24:MI:SS')
        );

Re: Insertion error [message #647815 is a reply to message #647814] Tue, 09 February 2016 02:40 Go to previous message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

Hopefully you are there to repeat what has already been suggested AND specified.
What does your post add to Bill's one?

Previous Topic: wrong argument passed any suggestion
Next Topic: Row lock without blocker
Goto Forum:
  


Current Time: Fri Jun 26 00:18:53 CDT 2026