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: 4B3737DA.4070408@gmail.com (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group