how to update array data in jsonb
column on database postgresql?
for example on table table1
i have column attribute
that have value like this:
id | attribute |
---|---|
1 | [{"task_customs": ["a", "b", "c"]}] |
2 | [{"task_customs": ["d", "e", "f"]}] |
for example if i want to delete b
from id 1
, so it will be like this on attribute
column
id | attribute |
---|---|
1 | [{"task_customs": ["a", "c"]}] |
2 | [{"task_customs": ["d", "e", "f"]}] |
already do some research but didn't get what i need..