Created
September 18, 2018 09:41
-
-
Save ichux/b2bae9bf88814a13ff8c015886095d02 to your computer and use it in GitHub Desktop.
Converts Posgres rows 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
SELECT | |
row_to_json(details) | |
FROM | |
( | |
SELECT | |
ARRAY[ 1, | |
2, | |
3 ] as arrays, | |
'Some information' AS text | |
) details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment