| От | Tuan Luu |
|---|---|
| Тема | Foreign Key Question |
| Дата | |
| Msg-id | 40273DD0.6030004@gmx.ch обсуждение исходный текст |
| Ответы |
Re: Foreign Key Question
Re: Foreign Key Question |
| Список | pgsql-admin |
Example: Table 1: Inventory, Productnr, Productserial (PK Inventory, Prouctnr) Table 2: Pruductnr, Produktdesc, Productversion (PK Productnr; FK Productnr) This Construct gives me an error during the creation in Postgresql (saying there is no unique constraint matching given keys for referenced table xxxx). The Primary Key in table 1 consists of two columns. In the second table there is a foreign key refencing to the first table. A unique constraint doesn't make sense on table one. Am I missing something here? Thanks for any answer Tuan
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера