-- select id,button_setting::JSON -> 'pc' -> 'location' from chat_web
select id,(button_setting -> 'pc')::JSONB -> 'location'
from chat_web
where ((button_setting -> 'pc')::JSONB
postgresql 递归使用json_set 函数来设置非最外层key对应value的值
最新推荐文章于 2024-03-22 09:23:46 发布