Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    464

    Unanswered: Converting datetime (requirement made simpler)

    Hi

    Hope someone can advise.

    I'm getting the date and time in two separate columns in a CSV file in the format:

    A_DATE A_TIME
    29/05/2012 15:30:00

    Would appreciate if someone could advise howthis data can be loaded into a 10g database where the data type of the column to load in is 'date'?

    Regards
    Shajju

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    Code:
    07:12:57 SQL> select to_date('29/05/2012 15:30:00','DD/MM/YYYY HH24:MI:SS') FROM DUAL;
    
    TO_DATE('29/05/2012
    -------------------
    2012-05-29 15:30:00
    
    07:13:53 SQL>
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Aug 2008
    Posts
    464
    Thanks anacedent. Got it.

Posting Permissions

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