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..

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe how the jdbc application works.

964


What is the purpose of jdbc?

982


What is database deadlock ? How can we avoid them?

985


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

1014


How can we disable a constraint ?

954


What is java soft framework?

936


What is connection data?

855


In which ways is driver class is registered with drive manager?

876


Which type of driver provides jdbc access via one or more odbc drivers?

844


Which is faster jdbc or odbc?

845


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

914


What is jdbc servlet?

914


Why do we need jdbc?

987


Does jpa use jdbc?

864


What is execute in java?

915