<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>engetu21</author_name>
  <author_url>https://blog.hatena.ne.jp/engetu21/</author_url>
  <blog_title>技術メモ</blog_title>
  <blog_url>https://engetu21.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラム</anon>
  </categories>
  <description>psycopg2を利用して、アップデートを実行する際に、更新日時カラム(timestamp型)に現在日時を入れる場合は以下のようにする。 import psycopg2 import datetime POS_DBNAME = &quot;postgres&quot; POS_HOST = &quot;localhost&quot; POS_USER = &quot;postgres&quot; POS_PASS = &quot;postgres&quot; # 現在の日付を取得 dt = datetime.datetime.now() # UPDATE文定義 update_str = f&quot;&quot;&quot; update table_a set name = 'hoge' , upd…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fengetu21.hatenablog.com%2Fentry%2F2022%2F06%2F02%2F200000&quot; title=&quot;【Python3】psycopg2でtimestamp型のデータを登録する場合 - 技術メモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-02 20:00:00</published>
  <title>【Python3】psycopg2でtimestamp型のデータを登録する場合</title>
  <type>rich</type>
  <url>https://engetu21.hatenablog.com/entry/2022/06/02/200000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
