Re: Need help with currval and nextvall...

Поиск
Список
Период
Сортировка
От Philip Hallstrom
Тема Re: Need help with currval and nextvall...
Дата
Msg-id 20021122113631.G96553-100000@cypress.adhesivemedia.com
обсуждение исходный текст
Ответ на Re: Need help with currval and nextvall...  (Dan Jewett <danjewett@mac.com>)
Список 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


В списке pgsql-novice по дате отправления:

Предыдущее
От: Dan Jewett
Дата:
Сообщение: Re: Need help with currval and nextvall...
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Need help with currval and nextvall...