File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference in getColumnName ad getColumnLabel

 
as chhipa
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic