从 pgadmin4 保存到文件

问题描述 投票:0回答:1

我使用的是PGadmin4。我的开发人员去度假了。如果我使用查询输入页面提出问题,我会收到如下错误消息: JOIN pg_catalog.pg_constraint con ON con.conrelid=rel.oid 但我可以从“命令行”放置相同的查询。我的问题是我生成了数千行并且需要将输出直接输出到文件(在 Mac 上运行)。有办法做到这一点吗?

我尝试使用查询工具。没有工作并测试了 psql 工具 - 但需要将输出转移到文件。

pgadmin-4
1个回答
-1
投票

请按照以下步骤解决此问题:

1. Connect to your database by launching pgAdmin4.

2. In the Query Tool, enter your query.

3. Use the green triangle icon to run the query.

4. Results can be seen in the Data Output section.

5. To export data, click on the diskette icon.

6. Select a format, then save the file.
© www.soinside.com 2019 - 2024. All rights reserved.