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 |
which scenarios we go for jdbc,and which scenario we go for connection polling and wat r advantages and disadvantages using connection pooling.
How many types of jdbc drivers are there?
How does JDBC differ from ODBC?
How can we retrieve the file in the oracle database?
Explain about the Try Block?
What is the latest version of JDBC? What new features are added?
Differentiate between a statement and a preparedstatement.
Is jdbc object oriented?
What are the ddl statements?
Which is better jpa or jdbc?
password, is stored in as plain text. What can I do to protect my passwords?
How many types of jdbc drivers are available?