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
How can I instantiate and load a new CachedRowSet object from a non-JDBC source?
RowSetInternal caller and returns void. What can I do in the readData method?
How can we set null value in jdbc preparedstatement?
What is jdbc odbc bridge in java?
How to insert and delete a row programmatically? (new feature in JDBC 2.0)
How a database driver can be loaded with jdbc 4.0 / java 6?
Which package contains jdbc api?
Explain how to make updates to the updatable resultsets.
What is a connection string used for?
What is a jdbc driver and how many jdbc drivers are available?
What is odbc and jdbc in dbms?
What is the full form of jdbc?
What is ojvm used for?
How do I find whether a parameter exists in the request object?
What is the purpose of jdbc?