Re: cross-table unique constraint

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: cross-table unique constraint
Дата
Msg-id 20040109041348.GB31586@wolff.to
обсуждение исходный текст
Ответ на cross-table unique constraint  (Randall Smith <randall@tnr.cc>)
Ответы Re: cross-table unique constraint  (Randall Smith <randall@tnr.cc>)
Список pgsql-general
On Tue, Jan 06, 2004 at 07:10:28 +0000,
  Randall Smith <randall@tnr.cc> wrote:
> Is it possible to create a unique constraint on multiple fields in
> related tables?

Not with the normal UNIQUE constraint. That will do multiple columns in
one table, but won't span tables.

You can probably do what you want using triggers.

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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: Using indices with long unique IDs.
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Simulation output using libpq