0
我有SQL文件的完全轉儲,如大小1.3GB
從SQL文件恢復單個錶轉儲
的dump_full.sql
它有一個像
dancing_core_spice
dancing_sea_beast
forde_clear_one
forde_super_now
一些表現在,我想是需要恢復/取/轉儲這些表的only data
從dump_full.sql
文件
psql -U postgres --table=dancing_core_spice dump_full.sql > dancing_core_spice.sql
我試圖上述命令,但它不工作
所以,任何人都可以請讓我知道如何利用僅單個表的轉儲從SQL文件(完全轉儲)
你不能用一個SQL文件作爲輸入使用pg_restore的再次傾倒。 –
它給我'pg_restore:[archiver]輸入文件看起來像是文本格式轉儲。請使用psql.' –
這是正確的@a_horse_with_no_name,我編輯我的答案。 –