必須先創建一個你要還原的名稱, 在使用還原資料庫語法
CREATE DATABASE newdvdrental;
進入psql, 並執行以下其中一種
```
pg_restore --dbname=newdvdrental --verbose c:\pgbackup\dvdrental.tar
#or
psql -U username -d dbname -1 -f filename.sql
```
參考來源: https://www.postgresqltutorial.com/postgresql-restore-database/ https://stackoverflow.com/questions/2732474/restore-a-postgres-backup-file-using-the-command-line
Postgresql
SQL Server Analytics Service 1
SEO(1) Github(2) Title Tag(2) ML(1) 李宏毅(1) SQL Server(18) Tempdb(1) SSMS(1) Windows(1) 自我成長(2) Excel(1) python Flask(1) python(5) Flask(2)
Max Chen (159)