Created
November 10, 2016 22:01
-
-
Save ksarantakos/c0bb4f67fee4bca0e5d4a2d1d25d9b2d to your computer and use it in GitHub Desktop.
This is how to output CSV from psql
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
\f ',' | |
\a | |
\t | |
\o /tmp/foobar.csv | |
\SELECT * FROM stuff; | |
\o | |
\q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment