How to find the column count in resultset?
Answer / 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 |
What is layer in communication?
Why is odbc needed?
Compare jdbc and odbc and how is jdbc required in this context.
What happens if connection is not closed in jdbc?
How does jdbc work?
What is a PreparedStatement?
What are the jdbc api components?
How to execute bulk number of queries at once?
How can we retrieve data from the resultset?
Is possible to open a connection to a database with exclusive mode with JDBC?
What is jdbc and odbc?
What are the steps involved in establishing a connection using jdbc in java?