auto-increment column - Mailing list pgsql-general

From Robert Buckley
Subject auto-increment column
Date
Msg-id 1317727848.59898.YahooMailNeo@web24102.mail.ird.yahoo.com
Whole thread Raw
Responses Re: auto-increment column  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: auto-increment column  (Boszormenyi Zoltan <zb@cybertec.at>)
List 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 by date:

Previous
From: Dave Page
Date:
Subject: PostgreSQL Conference Europe: Are you ready?
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: auto-increment column