MySQL Forums
Forum List  »  Newbie

Import and export flat files containing backslashes
Posted by: Darin Georgiev
Date: March 13, 2012 06:56AM

Hello,

I am importing text files using:
load data local infile 'E:\flatfile' into table `table1` fields terminated by '';
The file contains some backslashes, which seems to be ignored by mysql, so these rows enter into my database shifted to the left.
How can I load such file and then export it using:
SELECT * FROM `table1` into outfile 'e:/flatfile' fields terminated by '';
preserving the backslashes in the data?

Thank you,
Darin

Options: ReplyQuote


Subject
Written By
Posted
Import and export flat files containing backslashes
March 13, 2012 06:56AM


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.