sequenc_name.currval not defined

Поиск
Список
Период
Сортировка
От MT
Тема sequenc_name.currval not defined
Дата
Msg-id 3DDD6413.6010601@open2web.com
обсуждение исходный текст
Ответы Re: sequenc_name.currval not defined  (Philip Hallstrom <philip@adhesivemedia.com>)
Re: sequenc_name.currval not defined  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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 по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Re: Rép. : [GENERAL] double quotes around table and
Следующее
От: "Andy Kriger"
Дата:
Сообщение: how do i find out when a record was created/modified?