2017-08-15 116 views

回答

0

此文件不適用於pg_restore。你應該只在psql上執行它。

pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text formats.

在GitHub shell腳本上看看create_db以瞭解如何導入它。

+0

我之前做過,但沒有任何跡象表明它實際上已經保存。我會爲像我這樣的新人提到我的過程。 1.選擇數據庫,2.選擇「工具」,然後選擇查詢工具。 3.選擇打開文件夾符號,上傳所需的數據庫。 4最後點擊F5或閃電符號來執行這個數據庫。此時它應該被加載。我期待保存選項,但關閉,再次打開查詢工具,並運行此SQL語句「SELECT * FROM Customers;」 - 現在顯示它確實保存了數據,因爲它們在下面填充得很好。 –

相關問題