Oracle date / time conversion

in Oracle Database; Hi I am converting data from an old paradox table to a new oracle table, one of the problems im ...
+ Post Reply + Post New Topic
Results 1 to 2 of 2
  1. #1
    dsub42 is offline Member
    Points: 910, Level: 16
    Join Date
    01 Apr 2010
    Posts
    31
    Points
    910

    Oracle date / time conversion

    Hi I am converting data from an old paradox table to a new oracle table, one of the problems im having is incompatibility with date and time formats:

    some columns contain times in the format : "00:00:00" eg..... "15:00:00"
    some columns have date in the format: "dd/mm/yyyy" eg....... "21/08/2000"
    some columns have time and date eg.. "05/09/2000 15:49:39"

    Currently I have the data held in tables within an access database, and in CSV format.

    Could anyone help me as to how I can get the following into Oracle date formats? there is over 1000 records so manual conversion is out of the question

    Any help would be appreciated


  2. #2
    rajavu's Avatar
    rajavu is offline Forum Guru
    Points: 10,800, Level: 68
    Join Date
    13 Oct 2008
    Location
    @ Bangalore , India
    Posts
    814
    Points
    10,800

    Re: Oracle date / time conversion

    Better you create a function to recognize whether the value is time part , date part . and perform TO_DATE() function accordingly . And you have to decide which date the target value should be.

    Raj.

Other Solutions
  1. API to update need by date on a oracle PO
    By cvkartik in forum Oracle SCM & Manufacturing
    Replies: 0
    Last Post: 03-09-2011, 08:50 AM
  2. Replies: 3
    Last Post: 08-09-2010, 07:29 PM
  3. Oracle sort by date
    By sidtcs in forum SQL PL/SQL
    Replies: 2
    Last Post: 04-26-2010, 07:59 AM
  4. Converting AUG-09 to date in Oracle-SQL
    By Farshad Javadi in forum SQL PL/SQL
    Replies: 2
    Last Post: 08-13-2009, 10:05 PM
  5. create date and time items Blocks In Form Builder Oracle 9i
    By haider_1pk in forum Oracle Forms and Reports
    Replies: 1
    Last Post: 03-18-2009, 05:11 PM