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
Re: Creating a column interger with default to not null
Список 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 по дате отправления: