currval

Поиск
Список
Период
Сортировка
От Craig May
Тема currval
Дата
Msg-id 20001002045620.B6334@s2.enthdimension.com.au
обсуждение исходный текст
Список pgsql-sql
Hi,

I'm executing the following statements in series.  

insert into [tablename] values('a', 'b', 'c');

select currval('serial');

serial being the default index on [tablename]

The statement works fine from the command line, however, when executing via
jdbc, I'm getting no results back (null pointer).

Has anyone experienced this and have a solution?

Regards,
Craig May

Enth Dimension
http://www.enthdimension.com.au



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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Re: how can I mirror a postgres database
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: question on diagnostics