<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://tm.root-n.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Tipsというかメモ database:postgresql:psql</title>
        <description></description>
        <link>https://tm.root-n.com/</link>
        <lastBuildDate>Wed, 19 Nov 2025 00:40:43 +0900</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>https://tm.root-n.com/lib/images/favicon.ico</url>
            <title>Tipsというかメモ</title>
            <link>https://tm.root-n.com/</link>
        </image>
        <item>
            <title>PostgreSQL :: コマンドラインから使う場合に便利なオプション (-P ...</title>
            <link>https://tm.root-n.com/database:postgresql:psql:opt_pt</link>
            <description>psql -U ユーザ名 DB名  -P format=unaligned -t -c 'SELECT * FROM tablename;'


	*  ロングオプション


psql -U ユーザ名 DB名 --tuples-only --pset format=unaligned --field-separator=' ' 
     -c 'SELECT * FROM tablename;'</description>
        <category>database:postgresql:psql</category>
            <pubDate>Sun, 16 Mar 2008 22:48:09 +0900</pubDate>
        </item>
        <item>
            <title>PostgreSQL :: psql で 変数に値を渡す</title>
            <link>https://tm.root-n.com/database:postgresql:psql:opt_v</link>
            <description>複雑なSQLをファイルに書いて、psql コマンドから実行することがあります。

その際、SQLファイルに書かれたSQL文にpsqlから変数を渡す方法です。

以下の「sql.txt」はそれなりに複雑なSQLと思って読み替えてください。</description>
        <category>database:postgresql:psql</category>
            <pubDate>Sun, 16 Mar 2008 22:48:09 +0900</pubDate>
        </item>
    </channel>
</rss>
