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 in term of jdbc a datasource?
how you will execute the many tables data
What happens if we don't close the connection in jdbc?
Can you create an index on sex column where there is M or F?
What is the exception thrown by JDBC ?
Explain the steps in writing a java program using jdbc?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
Are all the required JDBC drivers to establish connectivity to my database part of the JDK?
What is JDBC Transaction Management and why do we need it?
How can I retrieve a String or other object type without creating a new object each time?
What is jdbc driver manager?
How can I write to the log used by DriverManager and JDBC drivers?