I'm not Sure but you can try this code for that i hope it's successful..
DatabaseMetaData meta = conn.getMetaData();
ResultSet schemas = meta.getSchemas();
while(schemas.next()){
String tableSchema = schemas.getString(1); // "TABLE_SCHEM"
String tableCatalog = schemas.getString(2);//"TABLE_CATALOG"
System.out.println("tableSchema"+tableSchema);
}
General developer forum
Databases: Verifiy database schema (with mysql)
This discussion has been locked so you can no longer reply to it.