简体   繁体   English

在 windows 上的 postgres 数据库中导入 a.sql 文件?

[英]import a .sql file in my database on postgres on windows?

postgres-# \i C:\Users\Public\datafile.sql;
C:: Permission denied

Use the forward slashes in path.在路径中使用正斜杠。 as shown below如下所示

postgres=# \i C:/Users/Public/datafile.sql

Disclosure: I work for EnterpriseDB (EDB)披露:我为EnterpriseDB (EDB)工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM