#>><\/code>\u306e\u56db\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\u8a18\u53f7\u306e\u610f\u5473<\/h3>\n
JSON\u6f14\u7b97\u5b50\u306f\u3001-<\/code>\u30fb#<\/code>\u30fb><\/code>\u30fb>><\/code>\u306e\u8a18\u53f7\u306e\u7d44\u5408\u305b\u3067\u8868\u73fe\u3055\u308c\u307e\u3059\u3002
\n\u8a18\u53f7\u306b\u610f\u5473\u304c\u3042\u308b\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n-<\/code>: \u5b50\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b<\/li>\n#<\/code>: \u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b<\/li>\n><\/code>: JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b<\/li>\n>><\/code>: \u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b<\/li>\n<\/ul>\n\u307e\u305f\u3001\u5b50\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u969b\u306f\u3001\u4ee5\u4e0b\u306e\u4e8c\u3064\u306e\u6307\u5b9a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059<\/p>\n
\n- JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\n
\n- key\u3092\u6307\u5b9a\u3059\u308b<\/li>\n
'{"hoge": "fuga"}'::json->>'hoge'<\/code> \u3067 fuga<\/code> \u3092\u53d6\u5f97\u3067\u304d\u308b<\/li>\n<\/ul>\n<\/li>\n- JSON\u914d\u5217\u306e\u5834\u5408\n
\n- \u6dfb\u5b57\u3092\u6307\u5b9a\u3059\u308b<\/li>\n
'["hoge", "fuga"]'::json->>0<\/code> \u3067 hoge<\/code> \u3092\u53d6\u5f97\u3067\u304d\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\u5177\u4f53\u4f8b<\/h3>\n
people.detail<\/code>\u306e\u5185\u5bb9\u306b\u5bfe\u3057\u3066\u691c\u7d22\u3092\u304b\u3051\u308b\u5f62\u3067\u8a18\u8f09\u3057\u3066\u3044\u304d\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u4e8c\u3064\u306eSQL\u306f\u540c\u3058\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\nselect detail->'name' from people;\nselect '{"name": "\u592a\u90ce", "age": 35, "children": [{"name": "\u4e8c\u90ce", "age": 9}, {"name": "\u4e09\u90ce", "age": 6}]}'::jsonb->'name';<\/code><\/pre>\n