Re: reset sequence

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: Ricardo Javier Aranibar "Len" <ricardo_jal(at)hotmail(dot)com>
Cc: Postgresql Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: reset sequence
Date: 2002-09-12 10:12:13
Message-ID: 20020912101213.18861.qmail@web40014.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


--- Ricardo Javier Aranibar Len
<ricardo_jal(at)hotmail(dot)com> wrote:
> Hi List,
>
> I need that somebody help me.
> First, I use PostgreSQL 7.0.3 for linux.
> I need reset my sequence but that it begin in 1
> again when a use nextval.
> And I have been search in
> http://archives.postgresql.org/ about reset
> sequence but I obtain this information:
> SELECT setval('name_sequence', 1, false);

try SELECT setval('name_sequence',1);

Maybe setval(<text>,<bigint>,<bool>) doesn't exist in
7.0.3.

regards,
ludwig lim

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

In response to

  • reset sequence at 2002-09-11 20:02:23 from Ricardo Javier Aranibar León

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Paesold 2002-09-12 10:28:50 Re: reset sequence
Previous Message juerg.rietmann 2002-09-12 10:01:44 still sorting and casting problems