如何使用新PostgreSQLJSON数据类型中的字段进行查询?
[ {name: "Toby", occupation: "Software Engineer"}, {name: "Zaphod", occupation: "Galactic President"}]
SELECT * from json_data WHERE "name" = "Toby"
SELECT id, json_string(data,'name') FROM thingsWHERE json_string(data,'name') LIKE 'G%';
PostSQL
相关分类