Hi All,
This is relatively simpe, or so i thought, i am trying to export a query to CSV using:
into outfile '/$filename.csv' fields terminated by ',' lines terminated by '\r\n'";
this works, but i get lots of formatting problems so i add:
into outfile '/$filename.csv' fields terminated by ',' enclosed by '"' lines terminated by '\r\n'";
As soon as i add the enclosed by or optionally enclosed by.. i get an error 500... what would cause that to happen.
I have also tried using '\n' instead of '\r\n'
Thanks