Home >Database >Mysql Tutorial >postgresql导出数据表还原

postgresql导出数据表还原

WBOY
WBOYOriginal
2016-06-07 14:58:571201browse

postgresql导出数据表还原 备份数据表,路径必须为下面路径。 COPY (select * from ticketlines) to var/lib/postgresql/ticketlines 还原数据表 COPY ticketlines from /var/lib/postgresql/ticketlines.copy; 这些可以在原数据表的基础上还原,但是必须保


postgresql导出数据表还原

 

备份数据表,路径必须为下面路径。

 

COPY (select * from ticketlines) to 'var/lib/postgresql/ticketlines'

 

还原数据表

 

COPY ticketlines from '/var/lib/postgresql/ticketlines.copy';

 

这些可以在原数据表的基础上还原,但是必须保证原数据表

 

与被还原数据不同,才能确保还原成功的。

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:mongodb入门-7查询2Next article:Postgres数组使用