I'm trying to output query results in comma delimited format using the mysql command line tool. My mysql user does not have access to use the "INTO OUTFILE" option referenced in this question:
http://stackoverflow.com/questions/356578/how-to-output-mysql-query-results-in-csv-format
I'm also aware of the -H and -X options to format output in html and xml respectively, but is there no way to output csv format directly to the screen?
I found this method using sed - http://tlug.dnho.net/?q=node/209 . But, I'm curious to find a straight mysql solution.
Any ideas?