DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: date format 2005-04-11 00:00:00.000

Threaded View

  1. #2
    Join Date
    May 2005
    Location
    Boracay
    Posts
    681
    you can load in first to oracle table as varchar2(23) then add another column (col2 date) and update this
    column as update t1 set col2=to_date(substr(col1,1,19),'yyyy-mm-dd hh24:mi:ss')
    then alter table t1 drop column column col1;

    Or

    in the sqlserver side to can use the convert function to char
    and use substring to trim the milliseconds.
    I am Assuming the milliseconds can be discarded here.
    Last edited by yxez; 11-28-2006 at 08:52 PM.
    Behind The Success And Failure Of A Man Is A Woman

Posting Permissions

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


Click Here to Expand Forum to Full Width