title: How to get the number of columns from a JDBC ResultSet?
body: <p>I am using <a href="http://sourceforge.net/projects/csvjdbc/" rel="noreferrer">CsvJdbc</a> (it is a JDBC-driver for csv-files) to access a csv-file. I don't know how many columns the csv-file contains. How can I get the number of columns? Is there any JDBC-function for this? I can not find any methods for this in java.sql.ResultSet.</p>
  
  <p>For accessing the file, I use code similar to the <a href="http://csvjdbc.sourceforge.net/" rel="noreferrer">example</a> on the CsvJdbc website.</p>