pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jack <datactrl@tpg.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: quastions about primary key
Date: Sun, 26 Jan 2003 12:29:12 +1000
Message-ID: <000901c2c4e2$b7a1ea50$1400a8c0@jac> (raw)
References: <20030124071239.T30220-100000@megazone23.bigpanda.com>


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?

Jack
----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone23.bigpanda.com>
To: "jack" <datactrl@tpg.com.au>
Cc: <pgsql-sql@postgresql.org>
Sent: Saturday, January 25, 2003 1:14 AM
Subject: Re: [SQL] quastions about primary key


> On Fri, 24 Jan 2003, jack wrote:
>
> > Is that possible to have a two columns primary key on a table with null
> > value on second column?
>
> No, because primary key implies not null on all columns involved
> (technically I think it's that a non-deferrable primary key implies
> not null on all columns involved, but we don't support deferrable ones)
>
>




view thread (5+ messages)  latest in thread

Message-ID: <000901c2c4e2$b7a1ea50$1400a8c0@jac>
Permalink:  ../000901c2c4e2$b7a1ea50$1400a8c0@jac/
Also on:    postgresql.org/message-id/000901c2c4e2$b7a1ea50$1400a8c0@jac

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: datactrl@tpg.com.au
  Subject: Re: quastions about primary key
  In-Reply-To: <000901c2c4e2$b7a1ea50$1400a8c0@jac>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox