postgres复制命令-CSV文件中用逗号括起并用逗号分隔的字段

时间:2018-08-02 06:04:19

标签: postgresql postgresql-9.3 postgresql-9.5

我正面临数据导入问题postgres表。我在csv文件中有数据。

  

“此”,“ postgres,sql”,“ linux”,“ infile”,“ that”,“ post,sql”,“ lnux”,“文件”

我尝试使用以下命令导入数据,但给出了错误

  

\从'/home/postgres/testdata/testfile.csv'复制test_table      DELIMITER','CSV HEADER;

     

错误:最后一个预期列之后的多余数据

所以如何消除双引号中的多余逗号。

0 个答案:

没有答案
相关问题