Change a field to sequence (serial)

Поиск
Список
Период
Сортировка
Искать

Change a field to sequence (serial)

От:
"Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>
Дата:
Hi lists,

Is there possible to change a bigint field (primary key) to a serial ?
If yes how it is possible ?

I was trying to do that but the pgadmin don't enable the change to sequence.

What is the problem my friends ?

Regards
Ezequias
http://ezequiasrocha.blogspot.com/

Re: [SQL] Change a field to sequence (serial)

От:
"Rodrigo De León" <rdeleonp@gmail.com>
Дата:
On 2/24/07, Ezequias Rodrigues da Rocha  wrote:
> Hi lists,
>
> Is there possible to change a bigint field (primary key) to a serial ?
> If yes how it is possible ?
>
> I was trying to do that but the pgadmin don't enable the change to sequence.
>
> What is the problem my friends ?
>
> Regards
> Ezequias
> http://ezequiasrocha.blogspot.com/

See:
http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-SERIAL
http://www.postgresql.org/docs/8.2/static/functions-sequence.html

FAQ