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 jdbc connection interface?
What is jdbc and jpa?
Can the JDBC-ODBC Bridge be used with applets?
What is odbc. how is it related to sql cli?
What protocol does jdbc use?
While in CallableStatament using in the oracle my procedure is return no.of columns so in java how can i retrivbe the data and i wnat to view all data which is reetrive from my procedure
is java pure object oriented or not ?
What does jdbc setmaxrows method do?
how to use CallableStatement? specially how to use their index given ..
What is a statement in java?
Describe odbc?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?