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

what is the difference between SENSITIVE and INSENSITIVE?

1 Answers  


What is the difference between execute, executeQuery, executeUpdate?

0 Answers  


Give an example for getXXX method?

0 Answers  


What is device controller?

0 Answers  


Give steps to connect to the db using jdbc?

0 Answers  






State the three different ways in which you can create a table?

0 Answers  


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

0 Answers  


What is JDBC API and when do we use it?

0 Answers  


How can I create a custom RowSetMetaData object from scratch?

0 Answers  


What are the ddl statements?

0 Answers  


What is jdbc and its advantages?

0 Answers  


What is odbc and jdbc in dbms?

0 Answers  


Categories