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

From: Emmanuel Charpentier <charpent(at)bacbuc(dot)dyndns(dot)org>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-questions(at)postgresql(dot)org
Subject: Re: Problem with alter table (creating a foreing key post
Date: 2003-01-21 07:44:20
Message-ID: 3E2CFA54.8020002@bacbuc.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:

>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. ;)
>
[ Feeling *very* silly ... ] Apologies ! English not being my mother
tongue, I overlooked this (although I checked lots of time before
helling for help ...).

>
>
>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
>
Thank you !

Emmanuel Charpentier

In response to

Browse pgsql-general by date

  From Date Subject
Next Message joepie Platteau 2003-01-21 08:01:12 Re: Database Performance problem
Previous Message Stephan Szabo 2003-01-21 07:38:27 Re: Problem with alter table (creating a foreing key post