Re: altering table

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: altering table
Дата
Msg-id 20030409072151.A65184-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на altering table  ("Riza Fahmi" <riza.fahmi@myrealbox.com>)
Список pgsql-general
On Wed, 9 Apr 2003, Riza Fahmi wrote:

> How to use alter table to add foreign key more than one field? Thanks
> for the attention

If you mean a multi-column foreign key:

alter table foo add constraint name foreign key (col1, col2, col3)
references bar(pcol1, pcol2,pcol3);

[The columns on bar are unnecessary if you're referencing the primary key]


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

Предыдущее
От: Joshua Moore-Oliva
Дата:
Сообщение: Re: aaagh... postgres is segfaulting? -- fix
Следующее
От: Michal Taborsky
Дата:
Сообщение: CREATE USER from within function