python - postgresql 如何合并.bak内数据?
伊谢尔伦
伊谢尔伦 2017-04-18 09:55:03
0
1
521

现有一个.bak备份文件,
一个数据库A.

.bak:1700w数据包含下面的51万数据
A:51w数据。

如何对.bak内数据补充到库A中,而不覆盖其原始数据。

pg有自带的方法吗,还是我必须要写一个python脚本.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
PHPzhong

First of all, you need to know how the .bak file is generated. Is it a text file or a dump file? If it is a text file, it is relatively simple to process. You can create a table test in library A, copy the .bak data to the test table, and then append the data of the test table to the existing data in library A;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template