From: | "David Johnston" <polobo(at)yahoo(dot)com> |
---|---|
To: | "'Rich Shepard'" <rshepard(at)appl-ecosys(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Not Seeing Syntax Error |
Date: | 2011-08-17 16:31:50 |
Message-ID: | 008301cc5cfb$2b521c90$81f655b0$@yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Rich Shepard
Sent: Wednesday, August 17, 2011 12:27 PM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Not Seeing Syntax Error
On Wed, 17 Aug 2011, Thom Brown wrote:
> The error message points to the problem. No value, not even NULL, has
> been specified for 5th column. Either put DEFAULT or NULL in there.
> You can't put nothing.
I was under the impression (obviously wrong) that a blank field was
accepted as a NULL.
Thanks,
Rich
----------------------------------------------
To be honest I was too and maybe I somehow implied that to you. Anyway, I
believe if you are dealing with CSV import then you are correct but
apparently SQL is not as forgiving. I use a third-party application to
import my CSV usually so whether that observation applies to PSQL or other
mechanisms (like pg_loader) I cannot say.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2011-08-17 16:35:10 | Re: Using Postgresql as application server |
Previous Message | Chris Travers | 2011-08-17 16:28:33 | Re: Using Postgresql as application server |