Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference in getColumnName ad getColumnLabel

 
as chhipa
Greenhorn
Posts: 26
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic