Check if Database Exists using Java
We can check if database exists using java.sql.DatabaseMetaData interface. using DatabaseMetaData interface we can obtain the meta data about the database catalog, for example we can obtain the database name, tables available in that database, columns in that table etc. The getCataLogs() method which is called on the instance of DataBaseMetaData, retrieves the catalog name … Read more