ALTER TABLE & NOT NULL

Поиск
Список
Период
Сортировка
От Thomas T. Thai
Тема ALTER TABLE & NOT NULL
Дата
Msg-id Pine.NEB.4.43.0204061307240.3329-100000@ns01.minnesota.com
обсуждение исходный текст
Список pgsql-general
How do you alter a column so that it uses NOT NULL? I tried:

alter table auth_users alter email set default not null;

ERROR:  Column "email" is of type character varying but default expression
is of type boolean
        You will need to rewrite or cast the expression


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

Предыдущее
От: "Command Prompt, Inc."
Дата:
Сообщение: Re: Who's using PostgreSQL?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: ALTER TABLE & NOT NULL