Re: Dual Primary keys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Dual Primary keys
Дата
Msg-id 13518.1075911726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Dual Primary keys  ("Bantamess" <bantamess@yahoo.co.uk>)
Список pgsql-novice
"Bantamess" <bantamess@yahoo.co.uk> writes:
> Hello can any body tell me how to code a table with dual primary keys?

Do you mean a two-column composite primary key?  Two independent primary
keys is nonsensical --- you should pick just one of them to be
considered the "primary" key.

If you want a composite primary key, the syntax is
    primary key (f1, f2)

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Dual Primary keys
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Dual Primary keys