{"id":50,"date":"2008-03-13T12:42:56","date_gmt":"2008-03-13T03:42:56","guid":{"rendered":"http:\/\/www.kaz.bz\/wp\/2008-03-13_198\/"},"modified":"2008-03-13T12:42:56","modified_gmt":"2008-03-13T03:42:56","slug":"postgresql%e3%81%aearray%e9%96%a2%e6%95%b0%e3%80%82","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2008\/03\/13\/50.html","title":{"rendered":"PostgreSQL\u306eARRAY\u95a2\u6570\u3002"},"content":{"rendered":"<p>SQL\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001ARRAY()\u95a2\u6570\u3092\u5229\u7528\u3059\u308b\u3068\u914d\u5217\u3067\u7d50\u679c\u30bb\u30c3\u30c8\u304c\u5f97\u3089\u308c\u308b\u3002<\/p>\n<p>\u4f8b\uff09<br \/>\nSELECT<br \/>\n  t1.id,<br \/>\n  ARRAY(SELECT cd from t2 where t2.id = t1.id)<br \/>\nfrom<br \/>\n  t1<\/p>\n<p>\u2192<br \/>\n1    {1,3,5,6}<br \/>\n2    {1,2,4}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001ARRAY()\u95a2\u6570\u3092\u5229\u7528\u3059\u308b\u3068\u914d\u5217\u3067\u7d50\u679c\u30bb\u30c3\u30c8\u304c\u5f97\u3089\u308c\u308b\u3002 \u4f8b\uff09 SELECT t1.id, ARRAY(SELECT cd from t2 where t2.id = t1.id) from t1  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-postgresql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":83,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/09\/20\/83.html","url_meta":{"origin":50,"position":0},"title":"\u627f\u8a8d\u524d\u306f\u30b3\u30e1\u30f3\u30c8\u6295\u7a3f\u672c\u4eba\u306b\u3082\u8868\u793a\u3057\u306a\u3044","author":"kaz. Suenaga","date":"2006\/09\/20","format":false,"excerpt":"wp-includes\/comment-functions.php comments_templat\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":416,"url":"https:\/\/wp.kaz.bz\/tech\/2010\/10\/22\/416.html","url_meta":{"origin":50,"position":1},"title":"\u5225\u306eDB\u30b5\u30fc\u30d0\u306b\u3042\u308b\u65e2\u5b58DB\u306e\u7ba1\u7406\u3092Plesk\u3067\u3084\u308b\u65b9\u6cd5\u3002","author":"kaz. Suenaga","date":"2010\/10\/22","format":false,"excerpt":"Plesk\u306e\u78ba\u304b Ver.8 \u3042\u305f\u308a\u304b\u3089\u3001\u5225\u30b5\u30fc\u30d0\u306b\u3042\u308bDB\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u2026","rel":"","context":"Plesk","block_context":{"text":"Plesk","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/plesk"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":37,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/06\/20\/37.html","url_meta":{"origin":50,"position":2},"title":"PHP\u306e\u7f6e\u63dbTips\uff08str_replace \u306b\u914d\u5217\u3092\uff09\u3002","author":"kaz. Suenaga","date":"2008\/06\/20","format":false,"excerpt":"PHP\u306e\u7f6e\u63dbTips\u3002 str_replace [1]\u306e\u5f15\u6570\u306b\u306f\u914d\u5217\u304c\u4f7f\u3048\u308b\u3002 str_replac\u2026","rel":"","context":"PHP","block_context":{"text":"PHP","link":"https:\/\/wp.kaz.bz\/tech\/category\/langs\/php"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":59,"url":"https:\/\/wp.kaz.bz\/tech\/2007\/07\/02\/59.html","url_meta":{"origin":50,"position":3},"title":"pg_dump\u306a\u3069\u3067\u81ea\u52d5\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a","author":"kaz. Suenaga","date":"2007\/07\/02","format":false,"excerpt":"http:\/\/www.postgresql.jp\/document\/current\/html\/lib\u2026","rel":"","context":"PostgreSQL","block_context":{"text":"PostgreSQL","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/db\/postgresql"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":107,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/05\/29\/107.html","url_meta":{"origin":50,"position":4},"title":"WordPress \u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u6210\u65b9\u6cd5\u3000\u305d\u306e2\u57fa\u672c\u52d5\u4f5c\u306e\u95a2\u6570","author":"kaz. Suenaga","date":"2006\/05\/29","format":false,"excerpt":"\u57fa\u672c\u52d5\u4f5c\u306f\u4ee5\u4e0b\u306e\u95a2\u6570\u306e\u307f add_action(\u30d5\u30c3\u30af, \u30a2\u30af\u30b7\u30e7\u30f3, \u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3 {\u30aa\u30d7\u30b7\u30e7\u30f3\u2026","rel":"","context":"WordPress Plugin","block_context":{"text":"WordPress Plugin","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/wordpress\/wordpress-plugin"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":800,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/04\/15\/800.html","url_meta":{"origin":50,"position":5},"title":"\u30c6\u30fc\u30de\u306e\u4f5c\u6210_01","author":"kaz. Suenaga","date":"2011\/04\/15","format":false,"excerpt":"\u6539\u3081\u3066\u307e\u3068\u3081\u3066\u3082\u610f\u5473\u304c\u306a\u3044\u304f\u3089\u3044\u3001\u826f\u8a18\u4e8b\u306f\u591a\u3044\u3067\u3059\u304c\u3001\u4e00\u5fdc\u3002 \u4f8b\u3048\u3070 Web\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30dc\u30c3\u30af\u30b9\u3055\u3093\u2026","rel":"","context":"WordPress \u30c6\u30fc\u30de","block_context":{"text":"WordPress \u30c6\u30fc\u30de","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/wordpress\/wordpress-%e3%83%86%e3%83%bc%e3%83%9e"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}