Re: Add Foreign Keys To Table

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Add Foreign Keys To Table
Дата
Msg-id 201107071207.46656.ahodgson@simkin.ca
обсуждение исходный текст
Ответ на Re: Add Foreign Keys To Table  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Add Foreign Keys To Table
Список pgsql-general
On July 7, 2011 11:55:25 AM Rich Shepard wrote:
> On Thu, 7 Jul 2011, Alan Hodgson wrote:
> > You need a unique index on station_type.sta_type
>
> Alan,
>
>    station_type(sta_type) is part of a composite primary key. Doesn't
> primary key automatically imply unique and not null?

It implies the composite is unique. Not sta_type.

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Add Foreign Keys To Table
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Add Foreign Keys To Table