Skip to content

Instantly share code, notes, and snippets.

@feeela
Created November 15, 2013 10:31
Show Gist options
  • Save feeela/7482305 to your computer and use it in GitHub Desktop.
Save feeela/7482305 to your computer and use it in GitHub Desktop.
SELECT `COL1`, `COL2`, `COL3`, `COL4`
FROM `TABLENAME`
INTO OUTFILE '/tmp/export.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment