Answer Posted / babu h m
We need to use MetaData option on the ResultSet in order to
get the column count
ResultSet xSet = stmt.executeQuery() ;
ResultSetMetaData rsMetaData = xSet.getMetaData() ;
int numOfColumns = rsMetaData.getColumnCount() ;
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is metadata in programming?
What is executeupdate in java?
Why do we need a jdbcrowset like wrapper around resultset?
How do you determine the sensitivity of the ResultSet object?
What is device controller?
How can we maintain the integrity of a database by using jdbc?
What is the most common example type 1 driver?
What is data source in java?
What is setautocommit in jdbc?
What does connection pooling mean ?
How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?
What is jdbc url for mysql?
How do I find ojdbc jar version?
Where is jdbc url mysql?
What causes no suitable driver error?