Re: plpgsql allowing null fields in insert commands?

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: plpgsql allowing null fields in insert commands?
Дата
Msg-id 76E73F22-961C-11D9-8BAD-000A95B03262@pgedit.com
обсуждение исходный текст
Ответ на plpgsql allowing null fields in insert commands?  ("Celia McInnis" <celia@drmath.ca>)
Список pgsql-novice
Celia,

On Mar 15, 2005, at 5:53 PM, Celia McInnis wrote:

> In a plpgsql procedure is there any way to form an insert command
> which has
> some null values for values of the inputs?
>
> Currently when I form such a command, the command becomes null if
> there are
> any null values inserted for the fields.

You can insert null values in an insert statement or have row values be
null by not including them in the insert statement. But if you are
getting errors because of this it is likely the column specification of
the table is setup disallow null values.

If this does not answer your question, post an insert example with the
error and the table specification.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


В списке pgsql-novice по дате отправления:

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: fetching text file from internet
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: plpgsql allowing null fields in insert commands?