Last active
August 29, 2015 14:24
-
-
Save tym-xqo/44caba93ca6f91e2765c to your computer and use it in GitHub Desktop.
Export table to json
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 -h qa.iadops.com -p 5433 -U<username> \ | |
-c "select row_to_json(<table>) from <table>;" \ | |
-d oao_trial -At > <table>.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment