Back

postgres - 把结果输出到一个文件

发布时间: 2022-02-26 04:03:00

refer to: https://linuxconfig.org/saving-an-output-of-postgresql-query-to-a-text-file

\o /tmp/query.txt

然后执行其他查询即可

查询结果中的ctrl + f 貌似是有问题的, 很多时候会出现 skipping x lines .  遇到这个情况,直接把它导出到 外部文件吧。

Back