This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: ResultSetMetaData
 
Similar Threads
jtree and database
MetaData Question?
how can show the data in database to jtable??
How to get the oracle type objects
Columns on JTable