Created
March 30, 2018 08:19
-
-
Save artem-a/4cc1bd306b9c3002c6bb9b9dd0139477 to your computer and use it in GitHub Desktop.
Outputting select SQL into 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
echo 'select * from table ' | psql database_name >> result.txt | |
cat query.sql | psql database_name >> result.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment