I update a key statement is as follows:
The UPDATE table
The SET jsonb_ccolumn=jsonb_set (jsonb_ccolumn json_path, value)
WHERE [condition];
CodePudding user response:
The UPDATE table SET jsonb_ccolumn=(jsonb_ccolumn | | '{" name ":" zhangsan three ", "need" : 1}') WHERE id=12183782;CodePudding user response:
One side effect, if the key repeat, be overwritten!