Re: Primary Key

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Primary Key
Дата
Msg-id 20040616191300.GA23786@wolff.to
обсуждение исходный текст
Ответ на Primary Key  (Eduardo V. Rodríguez <evazquez@insys-corp.com.mx>)
Список pgsql-novice
On Mon, Jun 14, 2004 at 19:17:37 -0500,
  "Eduardo V. Rodríguez" <evazquez@insys-corp.com.mx> wrote:
>
> But I pretend that automatically when I made an INSERT INTO table (month,
> day, time) values (A,B,C) the primary key update his value increasing by one
>
>
> I dont know how to do this, Iam using Postgres 7.4 with PgAdminIII

Depending on what you really want sequences might be the solution.
Sequences really only provide you with unique values. If you really need
the values not have any gaps in the numbers then you will need to do
more work (especially if you will be deleting rows).

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: page x is unitialized
Следующее
От: Eduardo V. Rodríguez
Дата:
Сообщение: Re: Primary Key