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

Describe how the jdbc application works.

1080


How MS-Access DB can be accessed over a network, using JDBC API?

2474


What does the jdbc resultset interface?

1014


What is getconnection method in java?

982


What is layer in communication?

940


What is the return type of class.forname() method?

1001


What is jdbc thin client?

1014


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

1025


What is @entity in java?

1011


What does jdbc stand for?

987


Which is better odbc or jdbc?

1062


What is com mysql jdbc driver?

970


What is the difference between execute, executeQuery, executeUpdate?

1076


List some new features available in jdbc 4.0?

958


Write a program JDBCcode forfetching student database with SQL.

1173