Re: CHECK col A not NULL if col B='x'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CHECK col A not NULL if col B='x'
Дата
Msg-id 20207.1096410990@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CHECK col A not NULL if col B='x'  (T E Schmitz <mailreg@numerixtechnology.de>)
Список pgsql-sql
T E Schmitz <mailreg@numerixtechnology.de> writes:
> I noticed a table constraint can be added via ALTER TABLE. Is it correct 
> that a column constraint cannot be added via the ALTER TABLE other than 
> by dropping and adding the column? (I am using psql 7.4.2.)

There is no difference between table and column constraints in PG.  Just
write it as a table constraint in ALTER TABLE.
        regards, tom lane


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

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re: Doubt
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: FOREIGN KEY and AccessExclusiveLock