Re: Alias "all fields"?

From: Franz(dot)Rasper(at)izb(dot)de
To: tino(at)wildenhain(dot)de, stefan(dot)schwarzer(at)grid(dot)unep(dot)ch
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Alias "all fields"?
Date: 2007-09-06 13:59:38
Message-ID: 11EC9A592C31034C88965C87AF18C2A702B83685@m0000s61
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Make the table:

> id | year | value
> ---+------+------
> 1 | 1970 | 23
> 1 | 1971 | 25
> 1 | 1972 | 28
> ...
> 2 | 1972 | 5
> 3 | 1971 | 94
> 3 | 1972 | 102

> primary key: (id,year)
> value not null
> and be ready.
>the import/update reasons are pretty easily solved
>that way too.

then your primary key will consists of two fields.
I prefer the primary keys with one field only.

-Franz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2007-09-06 14:07:52 Re: Alias "all fields"?
Previous Message Magnus Hagander 2007-09-06 13:48:10 Re: PostgreSQL with Kerberos and Active Directory