0

which method in the ResultSet that will return the number of column in a table?

I'm not entilry sure but i think its the getFetchSize()
However on the API it says that :

"Gives the JDBC driver a hint as to the number of rows that should be fetched from the database "

here says "rows" not columns?

any idea which method returns the number of columns of a table?

thanks

--
fd

1
Contributor
1
Reply
2
Views
12 Years
Discussion Span
Last Post by fdrage
0

Ok found it, was looking at the wrong thing.

just incase anyone interested its the ResultSetMetaData.getColumnCount();

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.