Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group