Last active
June 5, 2016 09:44
-
-
Save arsham/815d84ae3c7a61c8b5d5 to your computer and use it in GitHub Desktop.
Redirect the output of postgreSQL query to a file
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
| -- To enable | |
| \o output_file | |
| SELECT * FROM .....; | |
| -- TO disable | |
| \o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment