references versus foreign keys

Поиск
Список
Период
Сортировка
От Tom Allison
Тема references versus foreign keys
Дата
Msg-id 4401F2DB.4060602@tacocat.net
обсуждение исходный текст
Ответы Re: references versus foreign keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Maybe this is too much of a noob question but bear with me.

I'm assuming that I have a choice between
CREATE TABLE (..) REFERENCES other
and
CREATE TABLE (..) FOREIGN KEY () REFERENCES other
What is the differences between the two and why/when would I choose one over the
other?

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

Предыдущее
От: "Johnny l"
Дата:
Сообщение: exporting to DTD
Следующее
От: Tom Lane
Дата:
Сообщение: Re: references versus foreign keys