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 are clob and blob data types in jdbc?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
Is java a database?
What are JDBC statements?
what is CallableStatement and what is its usage?
Which is faster jdbc or odbc?
Describe odbc?
What does the jdbc resultsetmetadata interface?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
Difference between Dirty, commited ,phantom,repeatable reads?
How to set NULL values in JDBC PreparedStatement?
Explain how to make updates to the updatable resultsets.