Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to find the column count in resultset?



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

Post New Answer

More JDBC Interview Questions

Discuss the significances of jdbc.

0 Answers  


What is the different between ResultSet and RowSet?

0 Answers  


What are dml and ddl?

0 Answers  


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

0 Answers  


What are common JDBC Exceptions?

0 Answers  


what is meant by connection pooling?

4 Answers  


What are the measures to connect to the db using jdbc?

0 Answers  


What is Type-1 Driver and when this driver is used?

3 Answers  


What is jdbc template?

0 Answers  


What is metadata in jdbc?

0 Answers  


Which database is used for java?

0 Answers  


Which Driver is preferable for using JDBC API in Applets?

2 Answers  


Categories