{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yokoyan.net%2Fentry%2F2018%2F09%2F07%2F180000\" title=\"\u3010Python+Psycopg2\u3011PostgreSQL\u304b\u3089EXISTS\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306e\u5b58\u5728\u30c1\u30a7\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u65b9\u6cd5 - \u7d19\u4e00\u91cd\u306e\u7a4d\u307f\u91cd\u306d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://www.yokoyan.net/entry/2018/09/07/180000","provider_url":"https://hatena.blog","blog_title":"\u7d19\u4e00\u91cd\u306e\u7a4d\u307f\u91cd\u306d","width":"100%","author_url":"https://blog.hatena.ne.jp/yokoyantech/","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python","PostgreSQL"],"description":"\u5b9f\u884c\u74b0\u5883 AWS Lambda Python3.6 PostgreSQL9.6.6 psycopg2 \u3084\u308a\u305f\u3044\u3053\u3068 exists\u3067\u30c7\u30fc\u30bf\u306e\u6709\u7121\u3092\u78ba\u8a8d \u7d50\u679c\u3092Boolean\u3067\u8fd4\u5374\u3057\u305f\u3044 \u89e3\u6c7a\u65b9\u6cd5 fetchone()\u3092\u4f7f\u3046\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u4ee5\u4e0b\u3002 The cursor class \u2014 Psycopg 2.7.5 documentation \u5b9f\u88c5\u4f8b def is_exists(cur, fuga_no): cur.execute( \"SELECT EXISTS (SELECT * FROM public.hoge WHERE fuga_no = %s)\" % fuga_no) return cu\u2026","published":"2018-09-07 18:00:00","blog_url":"https://www.yokoyan.net/","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/y/yokoyantech/20180717/20180717175613.png","type":"rich","title":"\u3010Python+Psycopg2\u3011PostgreSQL\u304b\u3089EXISTS\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u306e\u5b58\u5728\u30c1\u30a7\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u308b\u65b9\u6cd5","provider_name":"Hatena Blog","version":"1.0","author_name":"yokoyantech"}