Re: Add Primary/Foreign Key in 7.3.2

Поиск
Список
Период
Сортировка
От Melanie Bergeron
Тема Re: Add Primary/Foreign Key in 7.3.2
Дата
Msg-id 3FE766AD.6090207@globeecom.com
обсуждение исходный текст
Ответ на Add Primary/Foreign Key in 7.3.2  ("Brian C. Doyle" <bdoyle@umpa-us.com>)
Список pgsql-general
You can do this by doing
ALTER TABLE mytable
    ADD CONSTRAINT myconstraint FOREIGN KEY (table_id) REFERENCES
myothertable(table_id);

Melanie


Brian C. Doyle wrote:

> Hello all,
>
> I was wondering if there is any way to add a primary and/or foreign
> keys to existing tables in 7.3.2
>
>
> ------------------------------------------------------------------------
>
> Brian C. Doyle
> Director, Internet Services
> United Merchant Processing Association
> http://www.umpa-us.com
> 1-800-555-9665 ext 212




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

Предыдущее
От: Melanie Bergeron
Дата:
Сообщение: CHECK versus a Table for an enumeration
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: restoring database