954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ResultSet.... getterMethod()

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

fdrage
Light Poster
28 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

Ok found it, was looking at the wrong thing.

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

fdrage
Light Poster
28 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You