Re: SERIAL type fields

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Andrew Ayers <aayers(at)eldocomp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SERIAL type fields
Date: 2003-04-24 19:53:04
Message-ID: 20030424195304.GA23845@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Apr 24, 2003 at 12:43:24 -0700,
Andrew Ayers <aayers(at)eldocomp(dot)com> wrote:
>
> What I came across was that I wanted to reset the sequence number so
> that when the new records were added, they would start at number "1" and
> increase from there.

If you look at the documentation for setval, you will see that there is
an optional third argument that you can use to keep the value from
being incremented on the next nextval call.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Olbersen 2003-04-24 19:54:16 Re: ODBC & Access [Try 2]
Previous Message Vilson farias 2003-04-24 19:52:03 pl-pgsql question