| From: | "jack" <datactrl(at)tpg(dot)com(dot)au> |
|---|---|
| To: | <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: quastions about primary key |
| Date: | 2003-01-26 02:29:12 |
| Message-ID: | 000901c2c4e2$b7a1ea50$1400a8c0@jac |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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(at)megazone23(dot)bigpanda(dot)com>
To: "jack" <datactrl(at)tpg(dot)com(dot)au>
Cc: <pgsql-sql(at)postgresql(dot)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)
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2003-01-26 03:51:30 | Re: returning setof in plpgsql |
| Previous Message | Evgen Potemkin | 2003-01-25 12:06:38 | Filter function |