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 |
What is the difference between setmaxrows(int) and setfetchsize(int)?
In JDBC, All the API?s are interfaces? Where is the actual implementation?
how to use CallableStatement? specially how to use their index given ..
How to test jdbc connection to sql server?
Where is jdbc used?
How does a custom RowSetReader get called from a CachedRowSet?
How do java applications access the database using jdbc?
Which is better jpa or jdbc?
What does it mean to "materialize" data?
how can we connect to db without using getConnection() method
What is the role of the jdbc drivermanager class?
What are the main components of JDBC ?