Re: accessing collumn in join ResultSet - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: accessing collumn in join ResultSet
Date
Msg-id 1038913413.23240.72.camel@inspiron.cramers
Whole thread Raw
In response to accessing collumn in join ResultSet  (Alex Dovlecel <dovle@kbs.twi.tudelft.nl>)
List pgsql-jdbc
Alex,

You have two choices here

rename one of the columns in the select by using "as"

ie select id as yid, id as xid ...

or use column numbers.

Dave


On Mon, 2002-12-02 at 12:17, Alex Dovlecel wrote:
> Hello again,
>
> Just want to know, in order not to struggle again.
>
> I jave a join query. Execute it, works fine, get the resultset.
>
> The tables involved are X and Y, both of them have an Id field.
>
> How can I access it from ResultSet? .getInt( "X.id" ) sais that there is no
> field!!!
>
> tx
> dovle
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Dave Cramer <Dave@micro-automation.net>


pgsql-jdbc by date:

Previous
From: "Han"
Date:
Subject: Re: Exception: No primary keys?
Next
From: Felipe Schnack
Date:
Subject: UTF encoding error