title: DatabaseMetaData multiple tables
body: <p>I'm trying to run a query that joins multiple tables which I then want to use to get column details like the name, etc (whatever I can get) from the resultset.</p>
  
  <p>Using a query with no joins, I would do something like:</p>
  
  <pre><code>DatabaseMetaData dmd = connection.getMetaData();
  try (ResultSet rs = dmd.getColumns(null, null, tableName, null)) {
              while (rs.next()) {
                  String columnName = rs.getString("COLUMN_NAME");
                  String columnType = rs.getString("TYPE_NAME");
                  Integer columnLength = rs.getInt("COLUMN_SIZE");
                  Boolean columnPrimaryKey = false;
                  ResultSet primaryKeysSet = columnMeta.getPrimaryKeys(null, null, clazz.getSimpleName());
                  while (primaryKeysSet.next()) {
                      if (primaryKeysSet.getString(4).equalsIgnoreCase(columnName)) {
                          columnPrimaryKey = true;
                      }
                  }
                  Boolean columnNotNull = columnResultSet.getString("NULLABLE").equals("0");
              }
          }
  </code></pre>
  
  <p>However, as far as <code>dmd.getColumns(null, null, tableName, null)</code> goes, I'm going to have a problem getting the <code>tableName</code> because it's multiple tables.</p>
  
  <p>Is there a way to get column data from a query with joins from multiple tables?</p>