Get a table name

From: Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Get a table name
Date: 2009-12-27 10:32:58
Message-ID: 4B3737DA.4070408@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi all,
I'm trying to get the table name of a column in this way:

ResultSet rs;
try
{
rs = ps.executeQuery();
ResultSetMetaData rsmd = rs.getMetaData();
System.out.println(rsmd.getTableName(..));

but the getTableName( ..) method gives me an empty string. Isn't there a
way to know the table name of a specific field I'm obtaining? Thanks

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Filip Rembiałkowski 2009-12-27 12:59:35 Re: Get a table name
Previous Message Thomas Kellerer 2009-12-26 16:56:38 Re: 8.5 and application name