Created
August 22, 2014 23:34
-
-
Save happysundar/16a8bd202fdd1326a44a to your computer and use it in GitHub Desktop.
how to extract an array out of JSONB in postgres
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
select array_agg(value) from jsonb_each_text('{"3d": "2011-05-20", "wide": "2011-05-20", "imax_3d": "2011-05-20"}'::jsonb); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment