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 |
Explain the different ways to register a driver?
Why “no suitable driver” error occurs?
How many locking systems are there in jdbc?
Which type of JDBC driver is the fastest one?
What is the benefit of having jdbcrowset implementation?
What is two-phase commit in the database?
What is the execute method in java?
How does jdbc driver work?
what happen if we set JDBC string to NULL?
What is createstatement method in java?
What protocol does jdbc use?
What is JDBC?
3 Answers Akamai Technologies,