Re: One parent record with 3 possible child records

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: One parent record with 3 possible child records
Дата
Msg-id CAKFQuwY6-90W2sO=peE6xf1F07vpbf_4PdKa_bt=4=OAH1GMCw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: One parent record with 3 possible child records  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
On Thu, May 2, 2024 at 6:37 AM Rob Sargent <robjsargent@gmail.com> wrote:
Presuming the id is unique in parent and child, what’s the value of the type field in the foreign key?  Are you saying the PK on tableMain is (type,id), perhaps for clustering purposes?


Preventing the parent record from saying "tblOne" while the actual ID value is present on "tblTwo".

David J.

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: One parent record with 3 possible child records
Следующее
От: "Wetmore, Matthew (CTR)"
Дата:
Сообщение: One parent record with 3 possible child records