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 xe in oracle jdbc url?
Is not bound in this context unable to find jdbc spring boot?
Briefly tell about the jdbc architecture.
How many locking systems are there in jdbc?
Why do we need jdbc api?
Jdbc-odbc bridge is multi-threaded or not?
Which package is used for jdbc application?
Why would you use setautocommit(false) in jdbc?
Does jdbctemplate use prepared statements?
Is jdbc a middleware?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What is the fastest type of JDBC driver?
What is the most common example type 1 driver?
What is JDBC PreparedStatement?
Is jdbc faster than hibernate?