Java and Currval - Mailing list pgsql-sql

From Sam Adams
Subject Java and Currval
Date
Msg-id 1115051412.14477.233176976@webmail.messagingengine.com
Whole thread Raw
Responses Re: Java and Currval
Re: Java and Currval
Re: Java and Currval
List 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 by date:

Previous
From: Stéphane RIFF
Date:
Subject: Query two database at once
Next
From: Michael Fuhr
Date:
Subject: Re: Java and Currval