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

which scenarios we go for jdbc,and which scenario we go for connection polling and wat r advantages and disadvantages using connection pooling.

2 Answers   TCS,


How many types of jdbc drivers are there?

0 Answers  


How does JDBC differ from ODBC?

7 Answers  


How can we retrieve the file in the oracle database?

0 Answers  


Explain about the Try Block?

0 Answers  


What is the latest version of JDBC? What new features are added?

4 Answers  


Differentiate between a statement and a preparedstatement.

0 Answers  


Is jdbc object oriented?

0 Answers  


What are the ddl statements?

0 Answers  


Which is better jpa or jdbc?

0 Answers  


password, is stored in as plain text. What can I do to protect my passwords?

0 Answers  


How many types of jdbc drivers are available?

0 Answers  


Categories