Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

postgresql jsonb remove key

SELECT jsonb '{"a":1,"b":2}' - 'a', -- will yield jsonb '{"b":2}'
       jsonb '["a",1,"b",2]' - 1    -- will yield jsonb '["a","b",2]'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #jsonb #remove #key
ADD COMMENT
Topic
Name
1+2 =