{"blog_url":"https://maximinstantcoffee.hatenadiary.com/","type":"rich","author_name":"maximInstantcoffee","author_url":"https://blog.hatena.ne.jp/maximInstantcoffee/","title":"postgresql\u3067update insert","provider_name":"Hatena Blog","image_url":null,"blog_title":"maximInstantcoffee\u306e\u65e5\u8a18","categories":[],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaximinstantcoffee.hatenadiary.com%2Fentry%2F2020%2F10%2F19%2F115131\" title=\"postgresql\u3067update insert - maximInstantcoffee\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u3042\u308b\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u30c7\u30fc\u30bf\u304c\u767b\u9332\u6e08\u307f\u306a\u3089update\u3001\u306a\u3051\u308c\u3070insert\u3092\u3057\u305f\u3044\u3002 \u7d50\u8ad6\u304b\u3089\u3044\u3046\u3068ONCONFLICT\u3092\u4f7f\u3048\u3070\u3088\u3044\u3067\u3059\u3002 ONCONFLICT ONCONFLICT\u304c\u4f7f\u3048\u308b\u306e\u306fPostgresql 9.5\u4ee5\u4e0a\u3001 ONCONFLICT\u306b\u6307\u5b9a\u3059\u308b\u9805\u76ee\u306fUNIQUE\u5236\u7d04\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 INSERT INTO test_table( id , point , time ) VALUES ( '1' , 100 , '2020/08/20 10:00:00.000' ) ON CONFLICT(id) DO UPDATE SET point = 100; CTE ONCONFL\u2026","provider_url":"https://hatena.blog","height":"190","url":"https://maximinstantcoffee.hatenadiary.com/entry/2020/10/19/115131","width":"100%","published":"2020-10-19 11:51:31"}