PostgreSQL: insert data into table from json - Stack …
https://stackoverflow.com/questions/17905501/postgresql-insert-data-into-table-from-json
Jan 23, 2016 · regress=# create table test (id serial primary key, name varchar (50)); CREATE TABLE regress=# insert into test (name) select name from json_populate_record (NULL::test, ' {"name": "John"}'); INSERT 0 1. Yes, this means you must list the columns. Twice, in fact, once in the SELECT list and once in the INSERT column-list. Reviews: 2
Reviews: 2
DA: 42 PA: 6 MOZ Rank: 11