sequenc_name.currval not defined - Mailing list pgsql-general

From MT
Subject sequenc_name.currval not defined
Date
Msg-id 3DDD6413.6010601@open2web.com
Whole thread Raw
Responses Re: sequenc_name.currval not defined  (Philip Hallstrom <philip@adhesivemedia.com>)
Re: sequenc_name.currval not defined  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general
Hi,

I keep on getting the following error when I attempt to insert a new record:

SELECT * FROM table_name WHERE tableid = currval('tableid_seq');

PostgreSQL said: ERROR: tableid_seq.currval is not yet defined in this
session.

What's weird about this problem is that I have a script that
successfully performs this action.

Thanks for your help,

Mark



pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Re: Rép. : [GENERAL] double quotes around table and
Next
From: "Andy Kriger"
Date:
Subject: how do i find out when a record was created/modified?