Primary key question

Поиск
Список
Период
Сортировка
От Richard Rowell
Тема Primary key question
Дата
Msg-id 3bi0ms00iak74c6jm26117unsskokmp0b4@4ax.com
обсуждение исходный текст
Список pgsql-general
I'm creating a database with 20 tables or so.  I have come to the
table that will likely tie many of these tables together, that is
every single field in this table will be a foriegn key.  My question
is, rather then include all of the fields into the primary key of this
table, and therefore include all of these fields into any table that
will reference this one, would it be politically correct to just give
each entry an integer as a primary key and scan for dupes in a
trigger?  It sure seems like it would cut down on the complexity of
the whole thing...

Thanx in advance!

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

Предыдущее
От: jprem
Дата:
Сообщение: help -- cursor inside a function
Следующее
От: Bill Barnes
Дата:
Сообщение: RE: Glade or wxPython and Postgresql