From: Philip Hallstrom <philip@adhesivemedia.com>
To: Kancha . <kancha2np@yahoo.com>
Cc: pgsql-general@postgresql.org, <pgsql-sql@postgresql.org>
Subject: Re: resetting sequence
Date: Tue, 26 Mar 2002 21:30:10 -0800 (PST)
Message-ID: <20020326212937.K37166-100000@teak.adhesivemedia.com> (raw)
In-Reply-To: <20020327023039.13665.qmail@web14914.mail.yahoo.com>
take a look at the SETVAL function... it's something close to:
SELECT SETVAL('sequence_name', 1);
something like that. check the manual.
On Tue, 26 Mar 2002, Kancha . wrote:
> My sequence starts from 1 and after few months it
> should be reset to 1 again. Can this be automated ??
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: philip@adhesivemedia.com, kancha2np@yahoo.com
Subject: Re: resetting sequence
In-Reply-To: <20020326212937.K37166-100000@teak.adhesivemedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox