> ## 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 SCHEMAS IN CATALOG

Lists the schemas 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 SCHEMAS IN CATALOG Syntax" theme={null}
SHOW SCHEMAS <IN | FROM> <catalog name>[.<database 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 schemas will be listed.

> [accordion] \<database name>
>
> Database within the *catalog* whose schemas will be listed.  If omitted,
> the schemas of every database are listed, or of the one database a
> *catalog* with a `DATABASE` option is bound to.

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

* A JDBC *catalog* over a source with no schemas, such as *MySQL*, lists its
  databases with no schema.
* An *Apache Iceberg* *catalog* has namespaces instead of databases, and lists
  them at every level (e.g., `sales` & `sales.eu`) with no database.

## Response

A two-column result set of `DATABASE_NAME` & `SCHEMA_NAME`.

## Examples

To list the schemas within a JDBC *catalog*:

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

```SHOW SCHEMAS IN CATALOG Output theme={null}
+-----------------+----------------------+
| DATABASE_NAME   | SCHEMA_NAME          |
+-----------------+----------------------+
| KINETICA        | SYSTEM               |
| KINETICA        | example_fed          |
| KINETICA        | information_schema   |
| KINETICA        | ki_catalog           |
| KINETICA        | pg_catalog           |
+-----------------+----------------------+
```


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