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

Prepared statements are faster. Why?

0 Answers  


How to create Connection interface object because it is Interface , Interface is not instansiated?

9 Answers   Aptech, CTS, HCL,


what happens if connection is not closed?

7 Answers   CTS,


Explain the two tier and three tier architecture of jdbc.

0 Answers  


What does executeupdate return in jdbc?

0 Answers  


What are stored procedures? How to call them?

3 Answers  


What is jdbc explain?

0 Answers  


what does batchUpdate does?

6 Answers   HCL,


How can I determine the isolation levels supported by my DBMS?

0 Answers  


I have written a program to connect to database using odbc.Can this Application run on any Platform????

2 Answers  


What is a connection string used for?

0 Answers  


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

0 Answers  


Categories