From: | Vernon Wu <vernonw(at)gatewaytech(dot)com> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Please help me out on this insert error |
Date: | 2002-06-13 07:24:29 |
Message-ID: | PJD0YU9RP4XGBTQF0OYU06DADAQLGA.3d0848ad@kimiko |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)megazone23(dot)bigpanda(dot)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") ...
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Vernon Wu | 2002-06-13 07:50:07 | Re: Please help me out on this insert error |
Previous Message | Christopher Kings-Lynne | 2002-06-13 05:29:26 | Re: How to remove contraint |