Re: Adding Foreign Key Constraint To Existing Table

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Adding Foreign Key Constraint To Existing Table
Date: 2011-07-01 21:39:23
Message-ID: alpine.LNX.2.00.1107011438430.31349@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 1 Jul 2011, Joshua D. Drake wrote:

> alter table bar add foreign key (id) references foo(id);

Thanks, Josh. I was close, but not exact.

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2011-07-01 21:42:08 Re: Adding Foreign Key Constraint To Existing Table
Previous Message Thom Brown 2011-07-01 21:11:13 Re: Adding Foreign Key Constraint To Existing Table