Re: customising serial type

From: Krasimir Dimitrov <kr(at)aiidatapro(dot)com>
To: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
Cc: PostgreSQL SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: customising serial type
Date: 2005-06-21 10:07:57
Message-ID: 200506211307.57723.kr@aiidatapro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday 21 June 2005 13:01, you wrote:
> hi,
> in a table with a serial datatype, how do i get the sequence to start
> at a specific number like 100000?

ALTER SEQUENCE sequence_name RESTART WITH 100000;

--
________________________________________________________
Krasimir Dimitrov
IT Department
AII Data Processing Ltd.,
16 Ivan Vazov Str,
Sofia 1000,
Bulgaria
Phone: +359 2 9376 352
E-mail: kr(at)aiidatapro(dot)com
http://www.see-news.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2005-06-21 10:23:57 Re: customising serial type
Previous Message Kenneth Gonsalves 2005-06-21 10:01:28 customising serial type