Re: serial field starting at specific value

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Mosher <mosher(at)andrews(dot)edu>
Cc: Mailing List Postgresql <pgsql-novice(at)postgresql(dot)org>
Subject: Re: serial field starting at specific value
Date: 2003-02-02 06:13:25
Message-ID: 7440.1044166405@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Robert Mosher <mosher(at)andrews(dot)edu> writes:
> Is there a way I can specify which value a serial field starts at?

Use setval() on the sequence created for the serial column.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-02-02 20:28:53 Re: Problem when adding an existing primary key
Previous Message will trillich 2003-02-02 04:33:26 Re: [NOVICE] Perl - Postgres