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 |
How transactions are performed using JDBC ?
what happen if we set JDBC string to NULL?
What is jdbc resultsetmetadata interface?
What class.forname will do while loading drivers of jdbc?
How vendor Naming registry supports JNDI?
What is the function of setautocommit?
What is connection data?
What is meant by connection string?
What are the components of jdbc?
What is the meaning of batch updates?
How many types of jdbc drivers are there?
Is jdbc object oriented?