Last active
October 14, 2015 17:01
-
-
Save luqmaan/d8e1a4e760d2db4eb749 to your computer and use it in GitHub Desktop.
psql copy command to csv command bash
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
psql -c "\copy (SELECT * FROM *) TO '/tmp/lol.csv' WITH CSV;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment