Re: FOREIGN KEY after CREATE TABLE?

Поиск
Список
Период
Сортировка
От Peter Harvey
Тема Re: FOREIGN KEY after CREATE TABLE?
Дата
Msg-id 3B883BE9.DB841EF2@codebydesign.com
обсуждение исходный текст
Ответ на FOREIGN KEY after CREATE TABLE?  (Peter Harvey <pharvey@codebydesign.com>)
Список pgsql-hackers
> > How can i add foreign keys after the CREATE TABLE? Is there some
> > combination of other SQL commands that will do the trick?
>
> Peter,
>
> try ALTER TABLE a_table ADD CONSTRAINT ... FOREIGN KEY ...
>

<Grr> I hate asking stupid questions. I scanned the ALTER TABLE syntax
and somehow overlooked it.

Thanks!

Peter




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: linking hba.c
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: linking hba.c