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

Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

0 Answers  


How many types of statements are there in jdbc?

0 Answers  


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

0 Answers  


Difference between Dirty, commited ,phantom,repeatable reads?

3 Answers  


How can you load the drivers?

0 Answers  






What is jdbc and its advantages?

0 Answers  


What are the jdbc statements?

0 Answers  


How can I retrieve a String or other object type without creating a new object each time?

0 Answers  


What are the advantages of collection pools?

0 Answers  


What is jdbc connection interface?

0 Answers  


What is a jdbc driver and how many jdbc drivers are available?

0 Answers  


What is the difference between client and server database cursors?

0 Answers  


Categories