Created
December 10, 2009 21:51
-
-
Save lukmdo/253721 to your computer and use it in GitHub Desktop.
MySQL export data 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 * INTO OUTFILE '/tmp/output.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM table_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment