<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yokoyantech</author_name>
  <author_url>https://blog.hatena.ne.jp/yokoyantech/</author_url>
  <blog_title>紙一重の積み重ね</blog_title>
  <blog_url>https://www.yokoyan.net/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>Python</anon>
    <anon>PostgreSQL</anon>
  </categories>
  <description>実行環境 AWS Lambda Python3.6 PostgreSQL9.6.6 psycopg2 やりたいこと existsでデータの有無を確認 結果をBooleanで返却したい 解決方法 fetchone()を使う。公式ドキュメントは以下。 The cursor class — Psycopg 2.7.5 documentation 実装例 def is_exists(cur, fuga_no): cur.execute( &quot;SELECT EXISTS (SELECT * FROM public.hoge WHERE fuga_no = %s)&quot; % fuga_no) return cu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yokoyan.net%2Fentry%2F2018%2F09%2F07%2F180000&quot; title=&quot;【Python+Psycopg2】PostgreSQLからEXISTSを使ってデータの存在チェックメソッドを作る方法 - 紙一重の積み重ね&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yokoyantech/20180717/20180717175613.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-07 18:00:00</published>
  <title>【Python+Psycopg2】PostgreSQLからEXISTSを使ってデータの存在チェックメソッドを作る方法</title>
  <type>rich</type>
  <url>https://www.yokoyan.net/entry/2018/09/07/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
