Re: \copy command error

From: erobles <erobles(at)sensacd(dot)com(dot)mx>
To: Mark Watson <mark(dot)watson(at)jurisconcept(dot)ca>
Cc: 'Andrew Maracini' <amaracini(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: \copy command error
Date: 2009-08-03 18:18:06
Message-ID: 4A7729DE.7050506@sensacd.com.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Watson wrote:
>
> *>De :* pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] *De la part de* Andrew
> Maracini
> >*Envoyé :* 3 août 2009 11:46
> >*À :* pgsql-general(at)postgresql(dot)org
> >*Objet :* [GENERAL] \copy command error
>
> >
>
> >hi,
> >
> >I can't seem to get the \copy command to work.
> >
> >Here's my syntax:
> >
> >GISCI# \copy gisp from 'd:/projects/gisp/gisp.csv' delimiter ','
> >
> >ERROR extra data after last expected column Line 1
> >
> >
> >It is taking all of the fields and grouping them into one field, the
> .csv has about 4700 records, here is what
>
Maybe the error is \c because '\c' is used to connect to another
database.
try the same line without '\' only :
copy gisp from d:/projects/gisp/gisp.csv' delimiters ',';

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-08-03 18:22:16 Re: \copy command error
Previous Message Mark Watson 2009-08-03 17:25:56 Re: \copy command error