From: | Ricardo Javier Aranibar León <ricardo_jal(at)hotmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | reset sequence |
Date: | 2002-09-11 20:02:23 |
Message-ID: | F84StMVhEUsebmspH2q0000197a@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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);
Now when I execute this command I have a message ERROR.
"ERROR: Function 'setval(unknow, int4, bool)' does not exist. Unable to
identify a function that satisfies the given argument types. You may need to
add explicit typecast".
_________________________________________________________________
MSN. Más Útil cada Día. http://www.msn.es/intmap/
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-09-12 02:05:00 | Re: writing a function to mimic mysql last_insert_id |
Previous Message | Josh Berkus | 2002-09-11 17:53:49 | Re: writing a function to mimic mysql last_insert_id |