What is the difference of these two kinds of foreign key defination?

From: sheepjxx <sheepjxx(at)gmail(dot)com>
To: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: What is the difference of these two kinds of foreign key defination?
Date: 2009-09-24 14:48:44
Message-ID: 37a11ce00909240748j4d9d8e4j5108e2fbbeb96e0f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

To be precise,

The difference between

create table a (
foreign key (id) referenced by b(name),
);

create table b(
id integer referenced by b(name),
);

Browse pgsql-general by date

  From Date Subject
Next Message Cédric Villemain 2009-09-24 15:09:26 Re: Looking for way to replicate master db to multiple mobile databases
Previous Message Tom Lane 2009-09-24 14:38:48 Re: Understanding 'could not read block'