{"author_url":"https://blog.hatena.ne.jp/engetu21/","version":"1.0","blog_url":"https://engetu21.hatenablog.com/","provider_name":"Hatena Blog","width":"100%","url":"https://engetu21.hatenablog.com/entry/2022/06/02/200000","title":"\u3010Python3\u3011psycopg2\u3067timestamp\u578b\u306e\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b\u5834\u5408","provider_url":"https://hatena.blog","description":"psycopg2\u3092\u5229\u7528\u3057\u3066\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001\u66f4\u65b0\u65e5\u6642\u30ab\u30e9\u30e0(timestamp\u578b)\u306b\u73fe\u5728\u65e5\u6642\u3092\u5165\u308c\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002 import psycopg2 import datetime POS_DBNAME = \"postgres\" POS_HOST = \"localhost\" POS_USER = \"postgres\" POS_PASS = \"postgres\" # \u73fe\u5728\u306e\u65e5\u4ed8\u3092\u53d6\u5f97 dt = datetime.datetime.now() # UPDATE\u6587\u5b9a\u7fa9 update_str = f\"\"\" update table_a set name = 'hoge' , upd\u2026","categories":["\u30d7\u30ed\u30b0\u30e9\u30e0"],"author_name":"engetu21","blog_title":"\u6280\u8853\u30e1\u30e2","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fengetu21.hatenablog.com%2Fentry%2F2022%2F06%2F02%2F200000\" title=\"\u3010Python3\u3011psycopg2\u3067timestamp\u578b\u306e\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3059\u308b\u5834\u5408 - \u6280\u8853\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","published":"2022-06-02 20:00:00","image_url":null}