It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes getTableName() on ResultSetMetadata Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "getTableName() on ResultSetMetadata" Watch "getTableName() on ResultSetMetadata" New topic

getTableName() on ResultSetMetadata

chakra pendurt

Joined: Jan 13, 2003
Posts: 1
I am using Oracle thin driver ( . I have the following problem:
Iam getting ResultSetMetaData from ResultSet, and trying to print the column names and table names of ResultSet
I am getting ColumnNames properly, And iam not getting the tableName . Only "" is returned on getTableName() of ResultSetMetadata
Did any one have solution for this.
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
Check the docs on your driver. The Informix JDBC driver we use has the same problem but it is documented as such.

Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
I agree. Here's the link:
subject: getTableName() on ResultSetMetadata
jQuery in Action, 3rd edition