我正在使用 PostgreSQL 12.2,我有一些 *.sql 文件要导入数据库
pg_restore -U postgres -d iotmaster -f D:\iotmaster.sql
但我面临这个错误
pg_restore: error: options -d/--dbname and -f/--file cannot be used together
如何在我的数据库中导入 .sql 文件?
我正在使用 PostgreSQL 12.2,我有一些 *.sql 文件要导入数据库
pg_restore -U postgres -d iotmaster -f D:\iotmaster.sql
但我面临这个错误
pg_restore: error: options -d/--dbname and -f/--file cannot be used together
如何在我的数据库中导入 .sql 文件?