Created
July 31, 2019 23:30
-
-
Save benhannel/abb79e57fbeceeb1a2eb55423f35372f to your computer and use it in GitHub Desktop.
Populating a table from a JSON string
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
INSERT INTO company_regions | |
SELECT * | |
FROM json_populate_record(NULL::company_regions, | |
'{"region_id":"10","company_regions":"British Columbia","country":"Canada"}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment