Created
January 28, 2014 18:27
-
-
Save gustavobgama/8673284 to your computer and use it in GitHub Desktop.
Save result of a query to CSV file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM | |
table | |
INTO OUTFILE | |
'/tmp/file.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