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

What is the return type of class.forname() method?

0 Answers  


What is a jdbc connection pool?

0 Answers  


Which jdbc driver is the fastest driver?

0 Answers  


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

0 Answers  


What is drivermanager in jdbc?

0 Answers  


What is the syntax of URL to get connection?

1 Answers  


What is jdbc vs odbc?

0 Answers  


What do you mean by batch processing in jdbc?

0 Answers  


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

0 Answers  


how we can remove hard code in java?

1 Answers   Satyam,


How the information about db(database) can be retrieved?

3 Answers  


How do I disallow NULL values in a table?

0 Answers  


Categories