From: | "Joshua b(dot) Jore" <josh(at)greentechnologist(dot)org> |
---|---|
To: | Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: How to load nulls into timestamp field |
Date: | 2002-02-19 21:27:39 |
Message-ID: | Pine.BSO.4.40.0202191526470.28953-100000@kitten.greentechnologist.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I seem to remember having similar problems. Use the additional syntax
"WITH NULL AS ''". That redefined NULL (during the copy) from \N to the
empty string.
Joshua b. Jore
http://www.greentechnologist.org
On Tue, 19 Feb 2002, Pam Wampler wrote:
> If I am trying to load data into tables:
> using psql -c "\copy $file from $file using delimiters | "
>
> and the table has a column of datatype timestamp that allows nulls,
> the input record has the delimiter | in its place --
> I get the ERROR: copy: line 1, Bad timestamp external representation ''
>
> why? please help
>
> Pam Wampler
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (OpenBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8csNNfexLsowstzcRAr7RAJ9EsknColO6M8Vt4cUIG6yUkA3W+QCg6plq
ojlpvIrKD8dht3werv9nYNs=
=/eQ4
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick Hatcher | 2002-02-19 21:43:46 | Query between databases? |
Previous Message | Pam Wampler | 2002-02-19 20:56:41 | How to load nulls into timestamp field |