Re: Please help me out on this insert error - Mailing list pgsql-sql

From Vernon Wu
Subject Re: Please help me out on this insert error
Date
Msg-id PJD0YU9RP4XGBTQF0OYU06DADAQLGA.3d0848ad@kimiko
Whole thread Raw
In response to Re: Please help me out on this insert error  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-sql
You are right, Steve. It needs the double quote mark. After I use the double quote mark, an error message is:

ERROR:  ExecAppend: Fail to add null value in not null attribute ...

which is right since I don't have non-null value to non-null field yet.

I, however, didn't use double quote mark when I created the table at all.

Now, I need to figure out how to add double quote mark in Java code query string.

v.

6/14/2002 6:12:18 AM, Stephan Szabo <sszabo@megazone23.bigpanda.com> wrote:

>On Thu, 13 Jun 2002, Vernon Wu wrote:
>
>>
>> Command:
>>
>> Insert into profile (userid, haveChildren)values('id98', 'No');
>
>You presumably used double quotes when creating the column, so
>you need to use them to refer to the column from that point on:
>
>insert into profile(userid, "haveChildren") ...
>
>
>





pgsql-sql by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: Please help me out on this insert error
Next
From: "Dmitri Colebatch"
Date:
Subject: Re: join question - three tables, two with foreign keys to the first