MySQL Forums
Forum List  »  Newbie

Re: LOAD DATA INFILE date format hell
Posted by: Bob Field
Date: January 23, 2007 01:14PM

LOAD DATA INFILE 'file_name'
    INTO TABLE tbl_name
    FIELDS TERMINATED BY ','
    (columns..., @date, morecolumns...)
    SET datecolumn = date_format(str_to_date(@date, '%d-%M-%Y'), '%m/%d/%Y');

Options: ReplyQuote


Subject
Written By
Posted
Re: LOAD DATA INFILE date format hell
January 23, 2007 01:14PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.