Re: Serial data type not starting at 1 - Mailing list pgsql-general

From tony
Subject Re: Serial data type not starting at 1
Date
Msg-id 1005835237.3352.1.camel@vaio
Whole thread Raw
In response to Serial data type not starting at 1  (Tielman J de Villiers <tjdevil@bondnet.co.za>)
List pgsql-general
On Thu, 2001-11-15 at 14:50, Tielman J de Villiers wrote:
> Hi,
>
> I hope someone can help me.
>
> I want to create a new table using the "automatic" sequence function of
> Postgres by creating the first column as type "serial". But I want to start
> at say "5000". Can it be done, and how?

Like in the docs...

START 5000

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html


pgsql-general by date:

Previous
From: tony
Date:
Subject: Re: Serial data type not starting at 1
Next
From: Stephan Szabo
Date:
Subject: Re: UPDATE w/ subselect doing locking