• 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!