Results 1 to 4 of 4

Thread: Insert Query

  1. #1
    Join Date
    Mar 2012
    Posts
    9

    Unanswered: Insert Query

    Hi,

    I want to insert the below data in one of my tables (oracle database) but I am not able to do so with the fraction second information.

    Can you correct me where I am going wrong?

    insert into user (ID,DATE) values(200,to_date('17/03/2012 10:50:53.129000', 'dd/mm/yyyy hh24:mi:ss'));

    I basically want 17/03/2012 10:50:53.129000 date to be inserted into database.

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    this is a db2 forum
    17/03/2012 10:50:53.129000 is a timestamp and not a date
    do you want to use federation from db2 to oracle ?
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Mar 2012
    Posts
    9
    I just wanted the same for oracle.

    Should I repost this query in oracle?

  4. #4
    Join Date
    Mar 2012
    Posts
    9
    It worked for me like this:

    insert into user (ID,DATE) values(200,to_timestamp('17/03/2012 10:50:53.129000', 'dd/mm/yyyy hh24:mi:ss:ff6'));


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •