How to get the number of columns from a JDBC Resultset?
Posted
by Sanoj
on Stack Overflow
See other posts from Stack Overflow
or by Sanoj
Published on 2010-04-10T18:21:50Z
Indexed on
2010/04/10
18:23 UTC
Read the original article
Hit count: 191
I am using CsvJdbc (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.
For acessing the file, I use code similar to the example on the CsvJdbc website.
© Stack Overflow or respective owner