Re: Importing CSV File

From: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
To: David Blomstrom <david(dot)blomstrom(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Importing CSV File
Date: 2015-10-26 21:57:14
Message-ID: 562EA1BA.9020506@archidevsys.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 27/10/15 10:45, David Blomstrom wrote:
> I tried to import a CSV file into a PostgreSQL table using pgAdmin
> III. I got an error message: "extra data after last column."
>
>
> All my spreadsheets have an "end of data" column that has /r/n in each
> cell. When I import a CSV file into a MySQL table, everything beyond
> /r/n is ignored. Is there some way to tell PostgreSQL to stop at /r/n?
>
> Thanks.
You can import the CSV into a spreadsheet (such as LibreOffice Calc),
and manually delete the extraneous lines.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-10-26 21:57:16 Re: Importing CSV File
Previous Message Adrian Klaver 2015-10-26 21:53:42 Re: Recursive Arrays 101