Re: Alias "all fields"?

Поиск
Список
Период
Сортировка
От Franz.Rasper@izb.de
Тема Re: Alias "all fields"?
Дата
Msg-id 11EC9A592C31034C88965C87AF18C2A702B83685@m0000s61
обсуждение исходный текст
Ответ на Alias "all fields"?  (Franz.Rasper@izb.de)
Ответы Re: Alias "all fields"?  (Tino Wildenhain <tino@wildenhain.de>)
Re: Alias "all fields"?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: PostgreSQL with Kerberos and Active Directory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alias "all fields"?