MySQL Forums
Forum List  »  Newbie

LOAD DATA INFILE Syntax
Posted by: angel rivero
Date: April 10, 2014 07:59AM

Hi all, I need import this txt file in DB MySQL with LOAD DATA INFILE Syntax:
;;110; 01/01/2014 01:30:00; OPAC; ALRAF; 3INCRE; ;

And tried:
LOAD DATA INFILE 'D:\\example.txt' IGNORE INTO TABLE `tbl_x` FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'

But the import in the table is wrong because the first two ";;" move forward all data, can you help me?
Thanks in advance.



Edited 3 time(s). Last edit at 04/10/2014 08:43AM by angel rivero.

Options: ReplyQuote


Subject
Written By
Posted
LOAD DATA INFILE Syntax
April 10, 2014 07:59AM
April 11, 2014 05:03AM
April 12, 2014 10:05AM
April 12, 2014 02:46PM


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.