Re: Serial data type not starting at 1

Поиск
Список
Период
Сортировка
От Tielman J de Villiers
Тема Re: Serial data type not starting at 1
Дата
Msg-id E1F206EC93DCD4119A05009027A4135906499F@sbssvr.bondnet.co.za
обсуждение исходный текст
Ответ на Serial data type not starting at 1  (Tielman J de Villiers <tjdevil@bondnet.co.za>)
Список 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@animaproductions.com]
Sent: Thursday, November 15, 2001 4:41 PM
To: Tielman J de Villiers
Cc: 'pgsql-general@postgresql.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: UPDATE w/ subselect doing locking
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Modifying check constraints