> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW DATABASES IN CATALOG

Lists the databases within an existing
[catalog](https://docs.kinetica.com/content/sql/ddl/create-catalog.md#sql-create-catalog), as its external source reports
them.

```sql title="SHOW DATABASES IN CATALOG Syntax" theme={null}
SHOW DATABASES [<IN | FROM> <catalog name>]
```

> [!NOTE]
>
> This statement queries the external source directly, and will fail
> if it is unreachable.  It requires `READ` access on the *catalog* and
> `CONNECT` access on its *data source*; see
> [GRANT Catalog Permission](https://docs.kinetica.com/content/sql/security/grant-catalog-permission.md#sql-security-priv-mgmt-catalog-grant).

## Parameters

> [accordion] IN / FROM
>
> Interchangeable keywords preceding the *catalog* name.

> [accordion] \<catalog name>
>
> Name of the existing *catalog* whose databases will be listed.  If
> omitted, the session's [default catalog](https://docs.kinetica.com/content/sql/ddl/set-catalog.md#sql-set-catalog) is
> listed.

The databases listed depend on the type of *catalog*:

* A *catalog* with a `DATABASE` option lists only that database.
* A JDBC *catalog* over a source with no schemas, such as *MySQL*, lists its
  databases.
* An *Apache Iceberg* *catalog* has namespaces instead of databases, so the
  statement is rejected; use
  [SHOW SCHEMAS IN CATALOG](https://docs.kinetica.com/content/sql/ddl/show-schemas-in-catalog.md#sql-show-schemas-in-catalog) to list
  the namespaces.
* A *Delta Lake* *catalog* lists its *Unity Catalog* catalogs as databases.

## Response

A single-column result set of `DATABASE_NAME`.

## Examples

To list the databases within a JDBC *catalog*:

```sql SHOW DATABASES IN CATALOG Example theme={null}
SHOW DATABASES IN jdbc_cat
```

```SHOW DATABASES IN CATALOG Output theme={null}
+-----------------+
| DATABASE_NAME   |
+-----------------+
| KINETICA        |
+-----------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.