Java and Currval

Поиск
Список
Период
Сортировка
От Sam Adams
Тема Java and Currval
Дата
Msg-id 1115051412.14477.233176976@webmail.messagingengine.com
обсуждение исходный текст
Ответы Re: Java and Currval
Re: Java and Currval
Re: Java and Currval
Список pgsql-sql
I'm having trouble getting the currval function to work from a Java
program (or from Postgres at all). I want to get the value of addressid
in the table taddress. The best I seem to be able to come up with is
'SELECT currval(taddress.addressid)'. However this gives me the error
'ERROR:  relation "1" does not exist' or whatever the number should be.
I've tried lots of variations but can't seem to work it out. What am I
doing wrong? Thanks.

-Sam


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

Предыдущее
От: Stéphane RIFF
Дата:
Сообщение: Query two database at once
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Java and Currval