Re: problem with copy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anand Raman <araman(at)india-today(dot)com>
Cc: postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: problem with copy
Date: 2001-01-22 15:46:34
Message-ID: 21415.980178394@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anand Raman <araman(at)india-today(dot)com> writes:
> arttoday=# \copy artists from STDIN using delimiters '|' with null as '||';

Er, don't you mean "with null as ''"?

The above-given command will never think any input column is a null,
since it won't parse '||' as a column value in the first place.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lémery 2001-01-22 16:00:16 Re: Troubles with performances
Previous Message Tom Lane 2001-01-22 15:44:06 Re: Re: Troubles with performances