Creating a column interger with default to not null

Поиск
Список
Период
Сортировка
От Chris Barnes
Тема Creating a column interger with default to not null
Дата
Msg-id BLU149-W22F7F504C6BBE98ADFA3CDD4620@phx.gbl
обсуждение исходный текст
Ответы Re: Creating a column interger with default to not null  (Thom Brown <thom@linux.com>)
Re: Creating a column interger with default to not null  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general

I am confused with what this is telling me.
I have a table and I am trying to add a new column with constraint not null.


What am I missing?
Chris


pgdb001=> alter table schema.table add COLUMN column_name integer not null;
ERROR:  column "column_name" contains null values

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

Предыдущее
От: "Bret S. Lambert"
Дата:
Сообщение: Re: Libpq memory leak
Следующее
От: "Wang, Mary Y"
Дата:
Сообщение: Trade Study on Oracle vs. PostgreSQL