Created
November 17, 2010 00:43
-
-
Save joeyAghion/702807 to your computer and use it in GitHub Desktop.
select database rows into 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 id, first_name, last_name, location, created_at, updated_at | |
| INTO OUTFILE '/tmp/petition_signatures.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' | |
| FROM petition_signatures; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment