Re: Please help me out on this insert error

Поиск
Список
Период
Сортировка
От Vernon Wu
Тема Re: Please help me out on this insert error
Дата
Msg-id PJD0YU9RP4XGBTQF0OYU06DADAQLGA.3d0848ad@kimiko
обсуждение исходный текст
Ответ на Re: Please help me out on this insert error  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список 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 по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: Please help me out on this insert error
Следующее
От: "Dmitri Colebatch"
Дата:
Сообщение: Re: join question - three tables, two with foreign keys to the first