I have an excel sheet that I'm using to add product data to. And for the product descriptions, in a single cell of excel, I'm using bullets and return characters, so the data is somewhat formatted.
From excel, I export as a tab delimited text file, and I then import this file into mysql using the following loadfile command:
load data infile './products.txt' into table products
fields terminated by '\t'
optionally enclosed by '"'
lines terminated by '\r\n';
When the file is imported, the newline (returns) are ignored. Actually, the are read as spaces. Because at the end of one line, where it should have gone to the next line, there is now a space, and then the bullet of the next line, and everything is just "stuck" together.
Any clues on where this mishap is happening? Is there something I need to add to the import to tell mysql that there are newline characters in the file, and that those should be kept? And if so, what would that newline character be?
Thanks.