Java DatabaseMetaData interfaceDatabaseMetaData interface provides methods to get meta data of a database such as database product name, database product version, driver name, name of total number of tables, name of total number of views etc. Commonly used methods of DatabaseMetaData interface
How to get the object of DatabaseMetaData:The getMetaData() method of Connection interface returns the object of DatabaseMetaData. Syntax: Simple Example of DatabaseMetaData interface :Output:Driver Name: Oracle JDBC Driver Driver Version: 10.2.0.1.0XE Database Product Name: Oracle Database Product Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 -Production Example of DatabaseMetaData interface that prints total number of tables :Example of DatabaseMetaData interface that prints total number of views :Next TopicStoring Image In Oracle Database |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India