Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
nested array to table
drop table if exists x cascade; create table x(name text, gender text); insert into x (name, gender) select t ->> 'name', t ->> 'gender' from jsonb_array_elements( '[ { "name": {first: "a", last: "b"}, "gender": "male" }, ]'::jsonb) t; select * from x;
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
HW1
as
remove properties from jsonb using function jsonb_set of PostgreSQL
Return IDs where there are exactly 3 occurrences1
SQL social network practice by Han Wang 20200720 - 2
Weekly Average Starting on Different Days
postgresql example hierarchy with addresses
renaming JSON field
Descriptor test
Descriptor test
Please log in to post a comment.