“extra data after last expected column” while trying to import a csv file into postgresql

后端 未结 3 1131
栀梦
栀梦 2020-12-29 02:02

I try to copy the content of a CSV file into my postgresql db and I get this error \"extra data after last expected column\".

The content of my CSV is



        
3条回答
  •  天涯浪人
    2020-12-29 02:29

    Not sure this counts as an answer, but I just hit this with a bunch of CSV files, and found that simply opening them in Excel and re-saving them with no changes made the error go away. IOTW there is possibly some incorrect formatting in the source file that Excel is able to clean up automatically.

提交回复
热议问题