Re: Need help with currval and nextvall...

From: Philip Hallstrom <philip(at)adhesivemedia(dot)com>
To: Dan Jewett <danjewett(at)mac(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Need help with currval and nextvall...
Date: 2002-11-22 19:36:54
Message-ID: 20021122113631.G96553-100000@cypress.adhesivemedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> >You need to quote (single quotes) the name of the sequence... and you need
> >to use nextval('album_album_id_seq') before calling currval().
> >
> >At least I think so.
>
> Thanks Phillip,
>
> I know I'm supposed to have the quotes but I keep getting :
> PostgreSQL said: ERROR: parser: parse error at or near
> "album_album_id_seq" unless I take them out.
>
> I also tried nextval() with the same error returned: ERROR: Attribute
> 'album_album_id_seq' not found.

Huh... well, what happens if you just run:

SELECT NEXTVAL('album_album_id_seq');

directly in psql?

-philip

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-11-22 19:43:50 Re: Need help with currval and nextvall...
Previous Message Dan Jewett 2002-11-22 19:27:42 Re: Need help with currval and nextvall...