insert into a data field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigLebowski
    New Member
    • Dec 2006
    • 1

    insert into a data field

    Hi all,

    I have to insert in a data field a value composed by a date and a time, that are
    stored in another table
    my problem is that the date is in a field (a data field) and the time in another (a
    varchar2 field).
    I've tried to concatenate as strings and convert with to_date but it gave me an
    error.
    How can I do?
    Thank u very much.
  • pragatiswain
    Recognized Expert New Member
    • Nov 2006
    • 96

    #2
    Originally posted by BigLebowski
    Hi all,

    I have to insert in a data field a value composed by a date and a time, that are
    stored in another table
    my problem is that the date is in a field (a data field) and the time in another (a
    varchar2 field).
    I've tried to concatenate as strings and convert with to_date but it gave me an
    error.
    How can I do?
    Thank u very much.
    TO_DATE(DATE_FI ELD || TIME_FIELD, <DATE_FORMAT> )
    DATE_FORMAT based on stored value in fields DATE_FIELD and TIME_FIELD
    example : 'MM/DD/YYYYHH24MISS'

    Hope this helps.

    Comment

    Working...