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 jdbc in dbms?
What does jdbc stand for?
What is jdbc architecture in java?
Why do we use jdbc statements?
What are the ddl statements?
How to set the attribute concurrency in resultset?
Why do we need jdbc api?
What are the different types of lockings in jdbc?
What is the purpose of jdbc?
Explain the various types of locking system in jdbc?
What is jdbc url for mysql?
Why do I have to reaccess the database for Array, Blob, and Clob data?