Re: Create Foriegn Key

Поиск
Список
Период
Сортировка
От Jeff Fitzmyers
Тема Re: Create Foriegn Key
Дата
Msg-id 78AA7595-9894-11D7-90DE-000A959C6000@cloverpub.com
обсуждение исходный текст
Ответ на Create Foriegn Key  ("David Busby" <busby@pnts.com>)
Список pgsql-general
ALTER TABLE "foreign_table_name" ADD CONSTRAINT "fkey_name" FOREIGN KEY 
("fkey_column") REFERENCES "primary_table_name"("primary_key_column_name
") ON UPDATE CASCADE ON DELETE CASCADE

(I think :-)

http://www.commandprompt.com/ppbook/index.lxp?lxpwrap=r22871%2ehtm
http://www.commandprompt.com/ppbook/index.lxp?lxpwrap=x13546.htm

Have fun, Jeff

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


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Create Foriegn Key
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Linux 2.6 kernel, tuned for use with databases -