Created
February 22, 2016 00:11
-
-
Save ryanwi/bb9ded2021ae5ce423db to your computer and use it in GitHub Desktop.
Export Query Results as 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
$ psql -d postgres://username:password@server:port/database -t -A -F"," -c "query" > output.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment