MySQL Forums
Forum List  »  Newbie

load data infile only loads last line
Posted by: Kevin L
Date: February 26, 2014 05:50PM

Hi there,

I have a text file that I am using a very simple load infile command but it seems to load only the last line.

LOAD DATA INFILE "$filename"
REPLACE INTO TABLE ticker_info
LINES TERMINATED BY '\r\n';

I opened up the text file in a text editor and confirmed that each line ends with a carriage return and a linefeed character.

Any help would be greatly appreciated.

Options: ReplyQuote


Subject
Written By
Posted
load data infile only loads last line
February 26, 2014 05:50PM


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.