not null across multiple columns

Поиск
Список
Период
Сортировка
От Matthew Terenzio
Тема not null across multiple columns
Дата
Msg-id afe02ecbf4cba22a174b9d30a1c4d2aa@jobsforge.com
обсуждение исходный текст
Ответы Re: not null across multiple columns
Re: not null across multiple columns
Список pgsql-general
here is an interesting question (to me)

suppose you wanted to be certain that either one of two or more columns
were present

Like in a user table, either a username or an email need to be present
to create a row.

You  can't use not null because it's an either or situation.

what's the best method to accomplish this sort of constraint?


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

Предыдущее
От: "Mike G"
Дата:
Сообщение: Cannot rename file pg_xlog\0000.....
Следующее
От: "George Pavlov"
Дата:
Сообщение: Re: not null across multiple columns