Re: [JDBC] Questión of JDBC

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Miguel Angel (dot)" <rev_angel(at)hotmail(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [JDBC] Questión of JDBC
Date: 2007-09-05 08:35:06
Message-ID: 46DE6A3A.5000409@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Miguel Angel . wrote:
> Something thus:
> SELECT * FROM tableA INNER JOIN tableB USING(column);
>
> columnA | columnB
> ------------------
> 10 | 20
>
> I need this:
>
> query
> -------
> columnA
> columnB
>
> This can be obtained by means of the JDBC?

Yes, see ResultSet.getMetaData().

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Kovacs 2007-09-05 09:27:19 PreparedStatement rounds doubles to scale 14 during update
Previous Message Kris Jurka 2007-09-05 08:18:30 Re: JDBC driver works in ccommand line, not in Tomcat5