Re: Autoincremental value

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: adburne(at)asocmedrosario(dot)com(dot)ar
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Autoincremental value
Date: 2004-08-13 20:09:23
Message-ID: 20040813200923.GA8550@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Aug 13, 2004 at 13:50:48 -0300,
adburne(at)asocmedrosario(dot)com(dot)ar wrote:
> Hi I'm a newbie in postgresql, I came from MSSQL, MySQL and now
> I'm testing postgres.
> In mysql there is a way to make a second autoincrement field, just:

Use serial for the type. You probably want to read up on sequences
and the serial type (which is really a macro for an int plus a default
based on a sequence) as the semantics are not identical with autoincrement.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josué Maldonado 2004-08-13 20:11:27 Re: Autoincremental value
Previous Message Mage 2004-08-13 19:54:09 Re: Autoincremental value