Re: Adding a Foreign Key - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Adding a Foreign Key
Date
Msg-id Pine.LNX.4.30.0109032000360.4304-100000@peter.localdomain
Whole thread Raw
In response to Adding a Foreign Key  (tankgirl@worldonline.es)
List pgsql-general
tankgirl@worldonline.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@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Adding a Foreign Key
Next
From: Stephan Bergmann
Date:
Subject: SHOW