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
please tell me the name and url path for type-4 driver ?
How can you use preparedstatement in jdbc?
What are the differences between stored procedure and functions?
How can you make a connection?
What is JDBC API and when do we use it?
What is encrypted connection?
What is the difference between jdbc and odbc?
Explain some new features available in jdbc 4.0?
What are the different types of locking in JDBC?
Write a program JDBCcode forfetching student database with SQL.
Does jdbc use ssl?
How to test jdbc connection to sql server?
What is statement and preparedstatement in java?
Explain the difference between inner and outer join ?
What are the jdbc drivers in java?