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

postgresql导出数据表还原

WBOY
Release: 2016-06-07 14:58:57
Original
1206 people have browsed it

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';

 

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

 

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

 

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template