Posted: Thu Feb 28, 2008 5:30 am Post subject: Parsing out special characters in outfile
Hello,
I am looking for a way to parse out certain characters when I write a select statement to an outfile.
I know how to escape the characters w/ the escaped by clause, but I need to parse off some double quotes and some backslashes.
I'm currently trying this:
[code:1]
select id, name from artists where id in(14346, 25919, 76150) INTO OUTFILE '/tmp/test_5.csv' FIELDS TERMINATED BY ',' ESCAPED BY '\\' LINES TERMINATED BY '\n'
[/code:1]
Is there anyway to do this w/ native mysql functions?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum