title: how to get a column name from resultset in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/696782/retrieve-column-names-from-java-sql-resultset">Retrieve column names from java.sql.ResultSet</a>  </p>
  </blockquote>
  
  
  
  <p>I have query which returns the result set, i want to get the column names which are returned.</p>
  
  <p>i really don't know how to get the column names from result set, it would be great help if some of you could provide me with the sample or example.</p>
  
  <p>how to do this in java.</p>
  
  <p>regards</p>