Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D40A9475F37 for ; Sat, 25 Jan 2003 23:10:56 -0500 (EST) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id F06F0475C2B for ; Sat, 25 Jan 2003 23:10:55 -0500 (EST) Received: (qmail 11402 invoked by uid 500); 26 Jan 2003 04:23:39 -0000 Date: Sat, 25 Jan 2003 22:23:39 -0600 From: Bruno Wolff III To: jack Cc: pgsql-sql@postgresql.org Subject: Re: quastions about primary key Message-ID: <20030126042339.GA11365@wolff.to> Mail-Followup-To: jack , pgsql-sql@postgresql.org References: <20030124071239.T30220-100000@megazone23.bigpanda.com> <000901c2c4e2$b7a1ea50$1400a8c0@jac> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c2c4e2$b7a1ea50$1400a8c0@jac> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/412 X-Sequence-Number: 11277 On Sun, Jan 26, 2003 at 12:29:12 +1000, jack wrote: > > I try use uique instead of primary key. And it works, it allows null values. > Is there any other difference between primary key and unique? I believe that the primary key is the default key for foreign key references into a table.