Skip to content

Instantly share code, notes, and snippets.

@chrismitchell
Created April 8, 2013 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismitchell/5338260 to your computer and use it in GitHub Desktop.
Save chrismitchell/5338260 to your computer and use it in GitHub Desktop.
MySQL - Save output as cdv
SELECT *
FROM TABLE_NAME
INTO OUTFILE '/tmp/filename.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY ',';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment