aspose file tools*
The moose likes JDBC and the fly likes difference in getColumnName ad getColumnLabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "difference in getColumnName ad getColumnLabel" Watch "difference in getColumnName ad getColumnLabel" New topic
Author

difference in getColumnName ad getColumnLabel

as chhipa
Greenhorn

Joined: Sep 04, 2006
Posts: 26
There are two methods in java.sql.ResultSet interface

String getColumnName(int);
String getColumnLabel(int);
What is the difference between these two since in my case both of these methods are giving the same values.
Thank you
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

javadocs says
getColumnLabel
Gets the designated column's suggested title for use in printouts and displays.

getColumnName
Get the designated column's name


I don't think it is such hard that you can not try your own.


Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference in getColumnName ad getColumnLabel
 
Similar Threads
javadoc bug or missing an option for class extending AbstractTableModel
Not recognising names containing underscores [RESOLVED]
How to find the column names..???
ResultSetMetaData
metadata w/o sql call?