Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 将表从postgres复制到本地_Postgresql_Postgis - Fatal编程技术网

Postgresql 将表从postgres复制到本地

Postgresql 将表从postgres复制到本地,postgresql,postgis,Postgresql,Postgis,我想将表从postgis数据库复制到PC硬盘(格式可以是.txt.xls.csv或其他格式)。 如何操作?使用SQL写入数据库服务器的文件系统 COPY tbl TO '/path/to/file/tbl.sql'; 有很多选项可以调整输出格式 如果需要从远程服务器复制到本地磁盘,请查看的\copy元命令。太好了。谢谢,这正是我要找的!

我想将表从postgis数据库复制到PC硬盘(格式可以是.txt.xls.csv或其他格式)。 如何操作?

使用SQL写入数据库服务器的文件系统

COPY tbl TO '/path/to/file/tbl.sql';
有很多选项可以调整输出格式


如果需要从远程服务器复制到本地磁盘,请查看的
\copy
元命令。

太好了。谢谢,这正是我要找的!