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 |
Prepared statements are faster. Why?
How to create Connection interface object because it is Interface , Interface is not instansiated?
what happens if connection is not closed?
Explain the two tier and three tier architecture of jdbc.
What does executeupdate return in jdbc?
What are stored procedures? How to call them?
What is jdbc explain?
what does batchUpdate does?
How can I determine the isolation levels supported by my DBMS?
I have written a program to connect to database using odbc.Can this Application run on any Platform????
What is a connection string used for?
DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?