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 are clob and blob data types in jdbc?

0 Answers  


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

0 Answers  


Is java a database?

0 Answers  


What are JDBC statements?

2 Answers  


what is CallableStatement and what is its usage?

1 Answers  


Which is faster jdbc or odbc?

0 Answers  


Describe odbc?

0 Answers  


What does the jdbc resultsetmetadata interface?

0 Answers  


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

0 Answers  


Difference between Dirty, commited ,phantom,repeatable reads?

3 Answers  


How to set NULL values in JDBC PreparedStatement?

0 Answers  


Explain how to make updates to the updatable resultsets.

0 Answers  


Categories