database constraints

Поиск
Список
Период
Сортировка
От Ben
Тема database constraints
Дата
Msg-id A27C13B0-17AB-11D9-8A0D-000A95BF2A8C@silentmedia.com
обсуждение исходный текст
Ответы Re: database constraints
Re: database constraints
Список pgsql-general
If I have have the table:

create table foo
(
    a int references bar(id),
    b int references baz(id)
)

... how do I make sure one and only one of the columns a and b are
non-null? Is it even reasonable?


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cache lookup failed for relation, when trying to DROP TABLE.
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Random not so random