Created
June 11, 2009 17:37
-
-
Save btbytes/128095 to your computer and use it in GitHub Desktop.
Export into a CSV file from MySQL
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
-- Export into a CSV file from MySQL | |
SELECT * from foologger | |
INTO OUTFILE '/tmp/rrr.csv' | |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
ESCAPED BY '\\' | |
LINES TERMINATED BY '\n'; | |
where dfd=2 and logtime >= '2009-06-08 05:00:00' and logtime <='2009-06-08 17:00:00' | |
and qhr=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment