Sequences: How do I set a sequence value?

From: David Steuber <nospam(at)david-steuber(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Sequences: How do I set a sequence value?
Date: 2000-09-04 19:00:01
Message-ID: m38zt83t31.fsf@solo.david-steuber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Given a sequence n created by creat sequence, how do I set n so that
nextval() will return a specific number on its next call?

--
David Steuber | "Are you now, or have you ever been, a member
NRA Member | of the NRA?" --- HUAC, 2004

Happiness is a SAAB Gripen <http://www.gripen.saab.se/> in the
garage, an FN-FAL in the safe, and an HK P7M8 on the hip.

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Calusic 2000-09-04 21:02:49 Re: Indexes not working (bug in 7.0.2?)
Previous Message Michaël Fiey 2000-09-04 18:38:08 NULL value withe cursor