Search Postgresql Archives

update field in jsonb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



is there a way to update a single field in jsonb without replacing the entire json document - couldn't find an example

for example

create table test (id primary key, data jsonb);

insert into test ({"name":"bill", "age":29});

 ?? update test   set data->age = 30


--
Support Dept
Tiger Nassau, Inc.
www.tigernassau.com
406-624-9310






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux