Created
December 6, 2013 16:56
-
-
Save deckerego/7828227 to your computer and use it in GitHub Desktop.
To export a data set as a CSV file within the MySQL console
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 '/home/username/data/my_table.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' from my_table; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment