Created
September 14, 2020 14:41
-
-
Save saswata-dutta/6cf568c5b537cfd942c880e45b4fa2fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DatabaseMetaData databaseMetaData = connection.getMetaData(); | |
int majorVersion = databaseMetaData.getDatabaseMajorVersion(); | |
int minorVersion = databaseMetaData.getDatabaseMinorVersion(); | |
String productName = databaseMetaData.getDatabaseProductName(); | |
String productVersion = databaseMetaData.getDatabaseProductVersion(); | |
int driverMajorVersion = databaseMetaData.getDriverMajorVersion(); | |
int driverMinorVersion = databaseMetaData.getDriverMinorVersion(); | |
int jdbcMajorVersion = databaseMetaData.getJDBCMajorVersion(); | |
int jdbcMinorVersion = databaseMetaData.getJDBCMinorVersion(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment