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

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hi all,
I'm trying to get the table name of a column in this way:

ResultSet rs;
             rs = ps.executeQuery();
             ResultSetMetaData rsmd = rs.getMetaData();

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


pgsql-jdbc by date

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

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