Re: Auto Increment

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
Cc: Postgres Users <pgsql-general(at)postgresql(dot)org>
Subject: Re: Auto Increment
Date: 2000-12-27 04:59:41
Message-ID: 200012270459.XAA13597@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Tue, 26 Dec 2000 postgres(at)flipper(dot)webdevelop(dot)net wrote:
>
> > Is there a way set a primary key to Auto Increment like you can
> > with MySQL?
>
> See the documentation on CREATE SEQUENCE, and also on CREATE TABLE and the
> SERIAL type.
>
> [An aside: this is something definitely that qualifies as a frequently
> asked question, as this is like the 4th time in a week this question has
> been asked. Would posting a FAQ list on a regular basis to the list be
> helpful for things like this, like is done on the Perl newsgroups?]
>

I don't think so. Doesn't everyone know the location of the FAQ?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-12-27 05:10:00 Re: Auto Increment
Previous Message Anand Raman 2000-12-27 03:16:44 Re: Tuning Database