Re: Strange delimiters problem

From: Andrej Kastrin <andrej(dot)kastrin(at)siol(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Strange delimiters problem
Date: 2007-06-03 19:37:50
Message-ID: 4663188E.6010703@siol.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hubert depesz lubaczewski wrote:
> On 6/3/07, *Andrej Kastrin* <andrej(dot)kastrin(at)siol(dot)net
> <mailto:andrej(dot)kastrin(at)siol(dot)net>> wrote:
>
> ||001||,||Classification||,||Economics||,||N||
> ||001||,||Classification||,||Trends||,||Y||
> etc...
>
>
> it looks like you should be able to read it using COPY command.
> something like:
> copy some_table from stdin with delimiter ',' csv quote '||';
>
> depesz
Thanks,
but I receive the following error message when I'm trying to run the
proposed copy command:

ERROR: COPY quote must be a single character

I use PostgreSQL 8.1.5.

Best, Andrej

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-06-03 20:23:43 Re: multimaster
Previous Message Ian Harding 2007-06-03 19:32:48 Re: NULLS and User Input WAS Re: multimaster