Re: Add Foreign Keys To Table - Mailing list pgsql-general

From Rich Shepard
Subject Re: Add Foreign Keys To Table
Date
Msg-id alpine.LNX.2.00.1107071228200.20399@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Add Foreign Keys To Table  (Alan Hodgson <ahodgson@simkin.ca>)
Responses Re: Add Foreign Keys To Table  (Alan Hodgson <ahodgson@simkin.ca>)
Re: Add Foreign Keys To Table  ("David Johnston" <polobo@yahoo.com>)
List pgsql-general
On Thu, 7 Jul 2011, Alan Hodgson wrote:

> It implies the composite is unique. Not sta_type.

   OK. Now I understand. How, then, do I add a unique constraint to each
component of the composite key so I can add them as foreign keys to the
station_information table? Or, is there another way to add those two columns
to station_information and then add the foreign key constraints?

Thanks for clarifying,

Rich


pgsql-general by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: Add Foreign Keys To Table
Next
From: Alan Hodgson
Date:
Subject: Re: Add Foreign Keys To Table