Re: Create Foriegn Key

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: Create Foriegn Key
Дата
Msg-id
20030606201333.W45663-100000@megazone23.bigpanda.com
Ответ на
Create Foriegn Key (David Busby)
Список
Дерево обсуждения
Create Foriegn Key "David Busby" <busby@pnts.com>
Re: Create Foriegn Key Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: Create Foriegn Key Jeff Fitzmyers <jeff@cloverpub.com>
Re: Create Foriegn Key Mark Wilson <mwilson13@cox.net>
Re: Create Foriegn Key "Ing. Roberto Andrade Fonseca" <randrade@abl.com.mx>

On Wed, 4 Jun 2003, David Busby wrote:

> List,
>     How can I create a Foriegn Key after my table is created?  I cannot find
> in docs (or google) anywhere.

See ALTER TABLE ADD CONSTRAINT, generally something of the form:

ALTER TABLE tablename ADD CONSTRAINT constraint name FOREIGN KEY(fkcol1)
 REFERENCES pktable(pkcol1);


В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: Jeff Fitzmyers
Дата:
Сообщение: Re: Create Foriegn Key
FAQ