two not null columns

Поиск
Список
Период
Сортировка
От Garry Saddington
Тема two not null columns
Дата
Msg-id 200804141732.53343.garry@schoolteachers.co.uk
обсуждение исходный текст
Ответы Re: two not null columns
Список pgsql-general
How would I write a table check constraint to make sure that two columns don't
both have nulls at the same time.
The following doesn't do it because it because it does not allow one column to
be null while the other holds data?

check(teachgroup is not null AND set is not null)

regards
garry

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: The default text search configuration will be set to "simple" ?
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: two not null columns