Created
November 1, 2011 18:43
-
-
Save leesmith/1331498 to your computer and use it in GitHub Desktop.
Dump postgresql table into csv file
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
COPY (SELECT foo,bar FROM whatever) TO '/tmp/dump.csv' WITH CSV HEADER; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment