Created
December 1, 2011 14:42
-
-
Save jfgomez86/1417244 to your computer and use it in GitHub Desktop.
Export from MySQL 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 username,fullname,email | |
| INTO OUTFILE '/tmp/users.csv' | |
| FIELDS TERMINATED BY ',' | |
| OPTIONALLY ENCLOSED BY '"' | |
| ESCAPED BY '\\' | |
| LINES TERMINATED BY '\n' | |
| FROM users; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment