在postgresql中使用Json类型
数据
{{ “名称”: “罗伊”, “国家”: “USA”, “爱好”: “游泳”},{名称: “罗伊”,国家: “美国”, “爱好”: “Crcket” },{ “名称”: “安岩”, “国”: “希腊”, “爱好”: “波罗”}}
如何通过data->>name="Roy"
获取所有匹配值?
O / P应该是:{{"name":"Roy","Country":"USA","Hobby":"Swim"},{name:"Roy",Country:"USA","Hobby":"Crcket"}}
我如何查询这种情况?