Usually, to export CSV reports from a mysql server, I connect & run a query on the server, save the results into a text file, and import the file to excel by specifying to separate the columns using the pipe delimited character.
I need to run a report on a table with a MEDIUMTEEXT column type, which contains comma characters, and line breaks (\n).
The line breaks and commas symbols are breaking the table layout.
SELECT `number`,REPLACE(`description`, ',', ''), mr.`dateInserted` FROM
`mr` WHERE mr.dateInserted >= '2012-01-01' AND mr.dateInserted <= '2012-01-31'
I solved the comma issues by using the MySQL REPLACE function, however, how can I remove the line breaks from the results?