Re: foreign key

Поиск
Список
Период
Сортировка
От Eric McKeeth
Тема Re: foreign key
Дата
Msg-id AANLkTikcUMBjNFWPF9hgwqB5F+2U158kZQKXkbNYxao8@mail.gmail.com
обсуждение исходный текст
Ответ на foreign key  ("Haris" <fbogdanovic@xnet.hr>)
Список pgsql-novice
2011/3/16 Haris <fbogdanovic@xnet.hr>
How to make a foreign key in pgAdmin ?
I want to make a foreign key that references
a primary key.
A primary key is of type "serial",
does that mean that foreign key should be "integer" or
some other type ?

Yes, your foreign key should be of type integer. Serial is just a shortcut for creating an integer with an associated sequence and default setting.

-Eric

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

Предыдущее
От: aaronenabs
Дата:
Сообщение: Re: Accessing dead rows within postgresql
Следующее
От: Andrew Hoyt
Дата:
Сообщение: Postgresql iPhone