Cannot COPY a CSV file from local machine to remote server

后端 未结 1 963
粉色の甜心
粉色の甜心 2020-12-22 08:41

I\'m using the below command to import the CSV file which is placed in my local system to a table in remote server.

But i\'m getting the below error.



        
相关标签:
1条回答
  • 2020-12-22 09:14

    You cannot do that in PostgreSQL server code, since the database server has no access to files on your client.

    You have to write client code in a language of your choice that supports COPY FROM STDIN.

    0 讨论(0)
提交回复
热议问题