aspose file tools*
The moose likes JDBC and the fly likes ResultSetMetaData Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ResultSetMetaData" Watch "ResultSetMetaData" New topic
Author

ResultSetMetaData

Chinmay Bajikar
Ranch Hand

Joined: Dec 08, 2001
Posts: 159
What is the way to get the column alias being used in the query when you are using the ResultSetMetaData object?
I suspect it is getLabel()?

Thanks ,
Chinmay


The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

I haven't tried this but I guess that getColumnLabel(int column) of ResultSetMetaData will give you result

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
Don't get me started about those stupid light bulbs.
 
subject: ResultSetMetaData