MySQL Forums
Forum List  »  Newbie

Re: LOAD DATA
Posted by: Devart Team
Date: March 07, 2011 02:21AM

To parse '01/01/01' you could use SET clause and STR_TO_DATE function -

LOAD DATA INFILE 'file.txt'
INTO TABLE t1
(column1, @var1)
SET date_field = STR_TO_DATE(@var1, '%d/%m/%y'); format van be changed

Also, have a look at Data Import tool (direct Excel reading).

Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/

Options: ReplyQuote


Subject
Written By
Posted
March 06, 2011 09:59AM
Re: LOAD DATA
March 07, 2011 02:21AM


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.