Re: Adding a Foreign Key

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: <tankgirl(at)worldonline(dot)es>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Adding a Foreign Key
Date: 2001-09-03 18:01:42
Message-ID: Pine.LNX.4.30.0109032000360.4304-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tankgirl(at)worldonline(dot)es writes:

> Well I wonder if a Foreign Key can also be added and what syntax does it follow.

ALTER TABLE foo ADD CONSTRAINT bar FOREIGN KEY (col) REFERENCES table(col) etc.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilles DAROLD 2001-09-03 18:03:02 PG log analyzer v1.1
Previous Message Tom Lane 2001-09-03 17:42:26 Re: RE: Error on postgresql driver (or pg_hba)