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 can we get the metaData (columnNames) from a table which
has no Records..

Answers were Sorted based on User's Feedback



how can we get the metaData (columnNames) from a table which has no Records....

Answer / sreenivas

Hi,
You can use DatabasrMetaData class to get the databse
information like... schenmaname, tables, columnnames,
etc....

DatabaseMetaData metaData = new DBConnection().getMetaData
();

Is This Answer Correct ?    2 Yes 1 No

how can we get the metaData (columnNames) from a table which has no Records....

Answer / srinivas

we get it from ResultSetMetaData

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More JDBC Interview Questions

How can we set null value in jdbc preparedstatement?

0 Answers  


commit() and rollback() methods are defined in which interface?

5 Answers  


What do you mean by metadata and why we are using it?

0 Answers  


what does the method Class.forName returns?

4 Answers   Siemens, TCS,


What are the different types of classes in the api component?

0 Answers  


What is ojdbc?

0 Answers  


Explain what should be done when a SQL exception is raised?

0 Answers  


What is odbc. how is it related to sql cli?

0 Answers  


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

0 Answers  


what is CallableStatement and what is its usage?

1 Answers  


signature of init method?

2 Answers  


How do I set properties for a JDBC driver and where are the properties stored?

0 Answers  


Categories