Created
March 22, 2011 19:35
-
-
Save FabricioFFC/881878 to your computer and use it in GitHub Desktop.
Mysql- Export select to 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 'example', CURTIME() | |
INTO OUTFILE '/tmp/result.csv' | |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' | |
FROM YOUR_TABLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment