MySQL Forums
Forum List  »  Newbie

Re: LOAD DATA INFILE date format hell
Posted by: Felix Geerinckx
Date: January 24, 2007 09:13AM

Gary Thomas Wrote:

> still not working
> ... (@date,column2,column3,column4,column5,column6,)
No comma after column6

> ... SET  column1 = date_format(str_to_date(@date, '%d-%M-%Y'), '%m/%d/%Y');

Try
... SET  column1 = date_format(str_to_date(@date, '%d-%b-%y'), '%m/%d/%Y');

By the way, dates belong in DATE columns, in the 'yyyy-mm-dd' format.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: LOAD DATA INFILE date format hell
January 24, 2007 09:13AM


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.