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 do you mean by metadata and why we are using it?
What is the use of jdbc?
What are collection pools?
Which type of driver provides jdbc access via one or more odbc drivers?
What is the purpose of the jdbc resultset interface?
Why we use jdbc instead of odbc?
What is the full form of jdbc and what is its purpose?
Name different methods for getting streams.
What is getconnection method in java?
What are four types of JDBC driver?
What is meant by jdbc and odbc?
What is ojdbc14 jar?
What is a lock in jdbc?
Is jdbc secure?
What is thin driver in jdbc?