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
Describe how the jdbc application works.
How MS-Access DB can be accessed over a network, using JDBC API?
What does the jdbc resultset interface?
What is getconnection method in java?
What is layer in communication?
What is the return type of class.forname() method?
What is jdbc thin client?
What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?
What is @entity in java?
What does jdbc stand for?
Which is better odbc or jdbc?
What is com mysql jdbc driver?
What is the difference between execute, executeQuery, executeUpdate?
List some new features available in jdbc 4.0?
Write a program JDBCcode forfetching student database with SQL.