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 return type of class.forname() method?
What is a jdbc connection pool?
Which jdbc driver is the fastest driver?
What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.
What is drivermanager in jdbc?
What is the syntax of URL to get connection?
What is jdbc vs odbc?
What do you mean by batch processing in jdbc?
any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.
how we can remove hard code in java?
How the information about db(database) can be retrieved?
How do I disallow NULL values in a table?