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

How a database driver can be loaded with jdbc 4.0 / java 6?

942


Why are we using blob datatypes in jdbc?

1085


Why should we close database connections in java?

1143


How many types of resultset are there in jdbc?

967


What do you mean by database connection pooling?

951


What does the jdbc databasemetadata interface?

982


Which is best database for java?

981


What are the types of statements in jdbc?

984


What is jdbc vs odbc?

948


What are the different types of lockings in jdbc?

923


What is jdbc and why is it required?

924


What is resultsetmetadata?

904


If you are truncated using JDBC, how can you that how much data is truncated?

1053


Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?

917


How can we move the cursor in a scrollable result set?

948