{"id":2399,"date":"2013-04-17T18:43:54","date_gmt":"2013-04-17T09:43:54","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=2399"},"modified":"2018-11-14T16:33:55","modified_gmt":"2018-11-14T07:33:55","slug":"postgresql9-2-%e7%af%84%e5%9b%b2%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2013\/04\/17\/postgresql9-2-%e7%af%84%e5%9b%b2%e5%9e%8b\/","title":{"rendered":"PostgreSQL9.2: \u7bc4\u56f2\u578b"},"content":{"rendered":"

\u3053\u3093\u306b\u3061\u308f \u5317\u5ddd\u3067\u3059\u3002<\/p>\n

JSON\u578b\u306b\u5f15\u304d\u7d9a\u304d\u3001PostgreSQL9.2\u3067\u8ffd\u52a0\u3055\u308c\u305f\u7bc4\u56f2\u578b\u3092\u89e6\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

http:\/\/www.postgresql.org\/docs\/9.2\/static\/rangetypes.html<\/a>
\n
http:\/\/www.postgresql.jp\/document\/9.2\/html\/rangetypes.html<\/a><\/p>\n

\u7bc4\u56f2\u578b<\/h2>\n

\u7bc4\u56f2\u578b\u306f\u30012\u3064\u306e\u5024\u3067\u7bc4\u56f2\u3092\u8868\u308f\u3059\u30c7\u30fc\u30bf\u578b\u3067\u3042\u308a\u3001
\n\u4e0b\u8a18\u306e\u3088\u3046\u306b\uff11\u3064\u306e\u30ab\u30e9\u30e0\u3067\u3001\u7bc4\u56f2\u3092\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

SELECT times from weather_range ;\r\n                     times                     \r\n-----------------------------------------------\r\n [\"2013-04-01 16:00:00\",\"2013-04-01 17:00:00\")<\/pre>\n

\u7bc4\u56f2\u578b\u306b\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306e\u7bc4\u56f2\u578b\u304c6\u3064\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306f
\n\u3053\u306e\u7d44\u307f\u8fbc\u307f\u306e\u7bc4\u56f2\u578b\u3067\u306a\u3093\u3068\u304b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n

CREATE TYPE \u3067\u72ec\u81ea\u306e\u7bc4\u56f2\u578b\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002
\n
http:\/\/www.postgresql.jp\/document\/9.2\/html\/sql-createtype.html<\/a><\/p>\n