摘要:
新增和更新 可以都通过 jsonb_set 实现 update 表名 set 列名 = (jsonb_set(列名::jsonb,'{key}','"value"'::jsonb,true)) where 条件 1 要注意里面的单引号和双引号 2 true 代表没有会新增,false 代表没有改项, 阅读全文
posted @ 2020-06-30 09:50 yiyishuitian 阅读(398) 评论(0) 推荐(0)
|
|
摘要:
新增和更新 可以都通过 jsonb_set 实现 update 表名 set 列名 = (jsonb_set(列名::jsonb,'{key}','"value"'::jsonb,true)) where 条件 1 要注意里面的单引号和双引号 2 true 代表没有会新增,false 代表没有改项, 阅读全文
posted @ 2020-06-30 09:50 yiyishuitian 阅读(398) 评论(0) 推荐(0) |
|