<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nobeans</author_name>
  <author_url>https://blog.hatena.ne.jp/nobeans/</author_url>
  <blog_title>豆無日記</blog_title>
  <blog_url>https://nobeans.hatenablog.com/</blog_url>
  <categories>
    <anon>postgresql</anon>
  </categories>
  <description>ちょっとしたデータ出力などは以下のようにやれば簡単にできます。 $ psql hoge hoge=# \a →出力で見やすいようにスペースを空けてそろえる処理をオフにする(トグルなので2回やると戻る) hoge=# \f , →セパレータをカンマにする。デフォルトは「|」 hoge=# \o /tmp/result.txt →それ以降のクエリ結果をファイルに保存してくれる hoge=# select a,b,c from aaaaaa; こんな感じでOK. 結果は、/tmp/result.txt に格納されます。便利便利。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobeans.hatenablog.com%2Fentry%2F20080815%2F1218781500&quot; title=&quot;Postgresqlのpsqlで好きなクエリを実行した結果をCSV形式で取得する方法 - 豆無日記&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>2008-08-15 15:25:00</published>
  <title>Postgresqlのpsqlで好きなクエリを実行した結果をCSV形式で取得する方法</title>
  <type>rich</type>
  <url>https://nobeans.hatenablog.com/entry/20080815/1218781500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
