auto-increment column

Поиск
Список
Период
Сортировка
От Robert Buckley
Тема auto-increment column
Дата
Msg-id 1317727848.59898.YahooMailNeo@web24102.mail.ird.yahoo.com
обсуждение исходный текст
Ответы Re: auto-increment column
Re: auto-increment column
Список pgsql-general
Hi,

I have a column in a table called hist_id with the datatype "integer". When I created the table I assigned this column the primary key constraint but didn´t make it an auto-increment column.

How could I do this to an the already existing column?

I have created the sequence with the following command but don´t know how to change the existing column to auto-increment.


$ create sequence hist_id_seq;

thanks for any help,

Rob

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

Предыдущее
От: Dave Page
Дата:
Сообщение: PostgreSQL Conference Europe: Are you ready?
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: auto-increment column