我正在使用 PostgreSQL 9.1.X
我正在尝试构建psql脚本来打印没有页眉但包括页脚的结果。
http://www.postgresql.org/docs/9.1/static/app-psql.html
从上面的文件
\pset tuples_only
Run Code Online (Sandbox Code Playgroud)
将关闭页眉和页脚。和
\pset footer off
Run Code Online (Sandbox Code Playgroud)
只会关闭页脚。
有没有办法psql关闭页眉并保持页脚打开?
我知道有很多方法可以使用 shell/perl/任何你喜欢的文本工具来解决这个问题,但是我想知道为什么页脚有一个配置而页眉没有一个配置?
id <--this line I don't want
---- <-- this line I don't want either
1 <-- this line, yes
(1 row) <-- yes, I want it!
Run Code Online (Sandbox Code Playgroud)