哇卡玛卡的博客在 PostgreSQL 中,如果 data 字段是 jsonb 类型,并且你想查询 data 字段中 name 为 “小明” 的数据,可以使用 ->> 操作符来提取 JSON字段的值,并结合 WHERE 子句进行查询。 SELECT * from user where data->> '...
arvin_baichuan的博客示例: UPDATE prj_odn_fibersegment f set f_aid=f2.f_aid...id=f2.f_id and f2.f_aid is not null and f2.f_zid is not null and f.f_aid is null and f.f_zid is null 注意: set后的更新属性不能带表别名,否则报错