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

What are the common jdbc exceptions?

515


What is JDBC Batch Processing and what are it’s benefits?

512


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

478


What is a java driver?

500


Explain the difference between resultset and rowset in jdbc

533






How can I write to the log used by DriverManager and JDBC drivers?

517


What is jsp and jdbc?

493


How do I disallow NULL values in a table?

541


What is difference between jdbc and odbc?

493


Explain the difference between inner and outer join ?

512


Discuss the procedure of retrieving warnings?

559


Is jdbctemplate thread safe?

483


List the advantages of using datasource?

557


Which database is used for java?

526


How do I connect to jdbc?

518