Last active
October 19, 2016 14:14
-
-
Save davidromani/2955007 to your computer and use it in GitHub Desktop.
Export MySQL table into CSV
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 * INTO OUTFILE 'result.csv' | |
FIELDS TERMINATED BY ',' | |
OPTIONALLY ENCLOSED BY '"' | |
ESCAPED BY '\\' | |
LINES TERMINATED BY '\n' | |
FROM <table>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment