Re: simulate multiple primary keysx

Поиск
Список
Период
Сортировка
От Brandon Metcalf
Тема Re: simulate multiple primary keysx
Дата
Msg-id Pine.LNX.4.58L.0907021252380.6476@cedar.geronimoalloys.com
обсуждение исходный текст
Ответ на Re: simulate multiple primary keys  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
w == wmoran@potentialtech.com writes:

 ...

 w> Your primary key can span multiple columns, i.e.
 w> PRIMARY KEY(jobclock_id, employee_id, machine_id)
 w> Could be more columns.

 w> Keep in mind that this ensures that the combination of all those
 w> columns is unique, which may or may not be what you want.


Sure.  I realize that a primary key can be made up of multiple
columns, but a unique constraint across the columns I need as
suggested by Matthew is what I was looking for.

Thanks.

--
Brandon

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: simulate multiple primary keys
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgAdmin - no_spool