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 |
Discuss the significances of jdbc.
What is the different between ResultSet and RowSet?
What are dml and ddl?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
What are common JDBC Exceptions?
what is meant by connection pooling?
What are the measures to connect to the db using jdbc?
What is Type-1 Driver and when this driver is used?
What is jdbc template?
What is metadata in jdbc?
Which database is used for java?
Which Driver is preferable for using JDBC API in Applets?