Re: Newbie Question

From: Joel Burton <jburton(at)scw(dot)org>
To: Clay & Judi Kinney <cricketk(at)home(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Newbie Question
Date: 2001-05-04 21:17:08
Message-ID: Pine.LNX.4.21.0105041716430.3424-100000@olympus.scw.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 1 May 2001, Clay & Judi Kinney wrote:

> How do I create an autoincrement field in a postgresql table???
>
> What are the correct field type and parameters????
>
> Any help would be appreciated.....

CREATE TABLE foo (
id SERIAL,
...
)

it comes out as an int4 or integer type.

--
Joel Burton <jburton(at)scw(dot)org>
Director of Information Systems, Support Center of Washington

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-04 21:19:53 Re: Newbie Question
Previous Message John Coers 2001-05-04 21:07:09 Re: commit_delay CANCEL