Re: Serial data type not starting at 1

From: Tielman J de Villiers <tjdevil(at)bondnet(dot)co(dot)za>
To: "'tony'" <tony(at)animaproductions(dot)com>, Tielman J de Villiers <tjdevil(at)bondnet(dot)co(dot)za>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Serial data type not starting at 1
Date: 2001-11-15 14:38:36
Message-ID: E1F206EC93DCD4119A05009027A4135906499F@sbssvr.bondnet.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Tony,

I have tried:
db=> create table test2(x serial start 5000,y varchar);
But it gives:
ERROR: parser: parse error at or near "start"

Tielman J de Villiers
BondNet Pty Ltd

-----Original Message-----
From: tony [mailto:tony(at)animaproductions(dot)com]
Sent: Thursday, November 15, 2001 4:41 PM
To: Tielman J de Villiers
Cc: 'pgsql-general(at)postgresql(dot)org'
Subject: Re: [GENERAL] Serial data type not starting at 1

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message tony 2001-11-15 14:40:37 Re: Serial data type not starting at 1
Previous Message Chris Ryan 2001-11-15 14:26:17 Re: Sourceforge on Oracle?