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

Explain the different ways to register a driver?

2 Answers  


Why “no suitable driver” error occurs?

0 Answers  


How many locking systems are there in jdbc?

0 Answers  


Which type of JDBC driver is the fastest one?

0 Answers  


What is the benefit of having jdbcrowset implementation?

0 Answers  


What is two-phase commit in the database?

0 Answers  


What is the execute method in java?

0 Answers  


How does jdbc driver work?

0 Answers  


what happen if we set JDBC string to NULL?

0 Answers   Sapient,


What is createstatement method in java?

0 Answers  


What protocol does jdbc use?

0 Answers  


What is JDBC?

3 Answers   Akamai Technologies,


Categories