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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is xe in oracle jdbc url?

1072


Is not bound in this context unable to find jdbc spring boot?

900


Briefly tell about the jdbc architecture.

995


How many locking systems are there in jdbc?

1024


Why do we need jdbc api?

970


Jdbc-odbc bridge is multi-threaded or not?

959


Which package is used for jdbc application?

973


Why would you use setautocommit(false) in jdbc?

1197


Does jdbctemplate use prepared statements?

908


Is jdbc a middleware?

944


What are 4 drivers available in JDBC? At what situation are four of the drivers used?

958


What is the fastest type of JDBC driver?

1054


What is the most common example type 1 driver?

1027


What is JDBC PreparedStatement?

958


Is jdbc faster than hibernate?

993