Re: foreign key constraint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: foreign key constraint
Дата
Msg-id 23428.1046794498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на foreign key constraint  (Dennis Gearon <gearond@cvc.net>)
Список pgsql-general
Dennis Gearon <gearond@cvc.net> writes:
> ALTER TABLE testUsrEmails ADD CONSTRAINT FOREIGN KEY (usr_id) REFERENCES testUsrs (usr_id)

Read the syntax more closely.  You can say ... ADD FOREIGN KEY ...
or ... ADD CONSTRAINT constraint_name FOREIGN KEY ...

            regards, tom lane

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

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: foreign key constraint
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: foreign key constraint