{"blog_url":"https://dk521123.hatenablog.com/","height":"190","author_url":"https://blog.hatena.ne.jp/dk521123/","author_name":"dk521123","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2020%2F01%2F23%2F223756\" title=\"\u3010PostgreSQL\u3011psql \u3067 \u5909\u6570 / \u5b9a\u6570\u3092\u4f7f\u3046 - \u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\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>","published":"2020-01-23 22:37:56","image_url":null,"description":"\u25a0 \u306f\u3058\u3081\u306b \u4f8b\u3048\u3070\u3001\u958b\u767a\u306a\u3069\u3067\u30de\u30b9\u30bf\u30fc\u30c7\u30fc\u30bf\u3092DELETE&INSERT\u3059\u308b\u306e\u306b ID\u3084\u30b3\u30fc\u30c9\u3092\u5909\u6570\u306b\u7f6e\u304d\u63db\u3048\u3066\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3002 ==== delete from sample_table where code = \u3010\u30b3\u30fc\u30c9\u3011; -- \u540c\u3058\u5024\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1 insert into sample_table (code, name) VALUES (\u3010\u30b3\u30fc\u30c9\u3011, 'Mike'); ==== \u3067\u3001\u610f\u5916\u3068\u306f\u307e\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3002 \u25a0 psql \u306e \u5909\u6570 \u5b9a\u7fa9 \\set \u5909\u6570\u540d \u5024 \u3010\u4f8b\u3011\\set NAME Mike \u53c2\u7167 :\u5909\u6570\u540d \u3010\u4f8b\u3011:NAME \u8868\u793a \\echo :\u5909\u6570\u540d \u3010\u4f8b\u3011\\echo \u2026","provider_name":"Hatena Blog","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30e0 \u306e\u8d85\u500b\u4eba\u7684\u306a\u30e1\u30e2","categories":["PostgreSQL"],"title":"\u3010PostgreSQL\u3011psql \u3067 \u5909\u6570 / \u5b9a\u6570\u3092\u4f7f\u3046","version":"1.0","type":"rich","provider_url":"https://hatena.blog","url":"https://dk521123.hatenablog.com/entry/2020/01/23/223756"}