Re: Serial data type not starting at 1

Поиск
Список
Период
Сортировка
От tony
Тема Re: Serial data type not starting at 1
Дата
Msg-id 1005835237.3352.1.camel@vaio
обсуждение исходный текст
Ответ на Serial data type not starting at 1  (Tielman J de Villiers <tjdevil@bondnet.co.za>)
Список 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 по дате отправления:

Предыдущее
От: tony
Дата:
Сообщение: Re: Serial data type not starting at 1
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: UPDATE w/ subselect doing locking