Recent Pos

Accessing Database Meta Data Using JDBC DatabaseMetaData


The DatabaseMetaData:

⇒ The DatabaseMetaData (java.sql.DatabaseMetaData) is implemented by the JDBC Driver vendor.

⇒ This object is used to get the details about the database server like database name, version and the features supported by the database server, etc.

jdbc database metadata example

How to get the DatabaseMetaData object?

The following method of Connection object is used to get the DatabaseMetaData object:


What is Metadata?

Database metadata is some data about the actual data. There are two types metadata:
1. Structural metadata: This is about the design and specification of the data.
2. Descriptive metadata: This is about the identification and properties of resources.

<-Previous: JDBC Batch Processing (Batch insert, update and delete) | | Next->JDBC Advanced ResultSet – Scrollable & Updatable ResultSet

No Comments

Post a Comment