From: Vernon Wu <vernonw@gatewaytech.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Please help me out on this insert error
Date: Thu, 13 Jun 2002 15:24:29 +0800
Message-ID: <PJD0YU9RP4XGBTQF0OYU06DADAQLGA.3d0848ad@kimiko> (raw)
In-Reply-To: <20020613150910.N8240-100000@megazone23.bigpanda.com>
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") ...
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: vernonw@gatewaytech.com, sszabo@megazone23.bigpanda.com
Subject: Re: Please help me out on this insert error
In-Reply-To: <PJD0YU9RP4XGBTQF0OYU06DADAQLGA.3d0848ad@kimiko>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox