{"title":"PostgreSQL\uff1a2\u5217\u3092\u540c\u4e00\u5217\u3068\u3057\u3066\u30bd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2014%2F08%2F07%2F054414\" title=\"PostgreSQL\uff1a2\u5217\u3092\u540c\u4e00\u5217\u3068\u3057\u3066\u30bd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5 - \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/AJYA/","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/A/AJYA/20140630/20140630052916.jpg","published":"2014-08-07 05:44:14","provider_name":"Hatena Blog","url":"https://ajya.hatenablog.jp/entry/2014/08/07/054414","type":"rich","width":"100%","description":"CASE\u5f0f\u3067\u30bd\u30fc\u30c8\u30ab\u30e9\u30e0\u3092\u7528\u610f\u3057\u3066\u30bd\u30fc\u30c8\u3057\u307e\u3057\u305f\u3002 PostgreSQL\u4e0a\u306b\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u3001column1\u3068column2\u304c\u3042\u308a\u307e\u3059\u3002 column1\u306fNULL\u306e\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u304c\u3001column2\u306fNULL\u4ee5\u5916\u306e\u5024\u304c\u5fc5\u305a\u5165\u3063\u3066\u3044\u307e\u3059\u3002 column1\u3068column2\u3092\u540c\u4e00\u5217\u3068\u307f\u306a\u3057\u3001NULL\u306f\u30bd\u30fc\u30c8\u306b\u4f7f\u308f\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u30bd\u30fc\u30c8\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u5b9f\u73fe\u65b9\u6cd5\u65b9\u6cd5\u3092\u8003\u3048\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306eSQL\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3057\u305f\u3002 SELECT * , CASE WHEN column1 IS NULL THEN column2 ELSE column1 END AS sortcolumn FR\u2026","blog_url":"https://ajya.hatenablog.jp/","height":"190","author_name":"AJYA","blog_title":"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u65e5\u5e38","version":"1.0","categories":["PostgreSQL","SQL"],"provider_url":"https://hatena.blog"}