Re: Creating a table - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Creating a table
Date
Msg-id 20011111192828.X72575-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Creating a table  ("Reuben Olson" <reuben.olson@clear.net.nz>)
List pgsql-general
On Mon, 12 Nov 2001, Reuben Olson wrote:

> Hi there
>
> I am converting a mySQL database to postgresql database and I was
> wondering if there was any auto increment function like there is in
> mysql or di I need to use a sequence or something...

The easiest way is to use the serial type which is an int4 with an
associated sequence it takes its default value from.


pgsql-general by date:

Previous
From: "Reuben Olson"
Date:
Subject: Creating a table
Next
From: Bruce Momjian
Date:
Subject: Re: Creating a table