MySQL Forums
Forum List  »  Other Migration

Convert text to date.
Posted by: eddie saidani
Date: July 27, 2007 02:42PM

Hi all

I am trying to import a table form a text file (tab delimited) into MySql. I am unable to convert the date fields into a it into the correct mysql date format.

The text file was exported form Excel, the original column format in Excel is: m/dd/yyyy

When I import it as mysql date i get: 0000-00-00 for all the fields,

Can I add a statement when importing the txt file.
Or do I have to import it as Vchar then convert it, if so how would I do that :-)

Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Convert text to date.
15824
July 27, 2007 02:42PM
7434
August 17, 2007 10:54AM


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.