Quantcast
Channel: postgres jsonb_set multiple keys update - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Paarth for postgres jsonb_set multiple keys update

You can try this Here we are using jsonb concatation operator || to Concatenate two jsonb objects update table_name set data = (select val from ( (select CASE WHEN data ? key THEN jsonb_set(data, '{'...

View Article



Answer by Abelisto for postgres jsonb_set multiple keys update

The documentation says: The || operator concatenates the elements at the top level of each of its operands. ... For example, if both operands are objects with a common key field name, the value of the...

View Article

postgres jsonb_set multiple keys update

I have DB table with jsonb column. number | data 1 | {"name": "firstName", "city": "toronto", "province": "ON"} I need a way to update data column. So my output should look like: {"name": "firstName",...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images