Answers for "postgresql how to update a json property"

1

postgresql update json field key value

UPDATE table_name SET attrs = jsonb_set(cast(attrs as jsonb), '{key}', '"new_value"', true) WHERE id = 'some_id';
Posted by: Guest on July-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language