Created
November 14, 2012 09:33
-
-
Save iammart/4071206 to your computer and use it in GitHub Desktop.
[MYSQL] Dump results to CSV
This file contains hidden or 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 column1, column2 FROM table | |
| INTO OUTFILE '/tmp/data.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