Re: Problem with alter table (creating a foreing key post

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problem with alter table (creating a foreing key post
Дата
Msg-id 20030120233732.B75599-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Problem with alter table (creating a foreing key post facto)  (Emmanuel Charpentier <charpent@bacbuc.dyndns.org>)
Ответы Re: Problem with alter table (creating a foreing key post  (Emmanuel Charpentier <charpent@bacbuc.dyndns.org>)
Список pgsql-general
On Tue, 21 Jan 2003, Emmanuel Charpentier wrote:

> A curious problem with 7.3.1 : I wanted to add a foreing key constraint to
> a table already created and populated. No way, according to Postgres :

It helps if you spell foreign correctly. ;)

> essai=# alter table tableb add constraint lien_a_a foreing key (refa)
> references tablea (keya);
> ERROR:  parser: parse error at or near "foreing" at character 44
> essai=# alter table tableb add foreing key (refa) references tablea (keya);
> ERROR:  parser: parse error at or near "(" at character 36




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

Предыдущее
От: Emmanuel Charpentier
Дата:
Сообщение: Problem with alter table (creating a foreing key post facto)
Следующее
От: Emmanuel Charpentier
Дата:
Сообщение: Re: Problem with alter table (creating a foreing key post