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

How transactions are performed using JDBC ?

2 Answers  


what happen if we set JDBC string to NULL?

0 Answers   Sapient,


What is jdbc resultsetmetadata interface?

0 Answers  


What class.forname will do while loading drivers of jdbc?

0 Answers  


How vendor Naming registry supports JNDI?

0 Answers  


What is the function of setautocommit?

0 Answers  


What is connection data?

0 Answers  


What is meant by connection string?

0 Answers  


What are the components of jdbc?

0 Answers  


What is the meaning of batch updates?

0 Answers  


How many types of jdbc drivers are there?

0 Answers  


Is jdbc object oriented?

0 Answers  


Categories