Skip to main content
Lists the schemas within an existing catalog, as its external source reports them.
SHOW SCHEMAS IN CATALOG Syntax
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.

Parameters

IN / FROM

Interchangeable keywords preceding the catalog name.

<catalog name>

Name of the existing catalog whose schemas will be listed.

<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:
SHOW SCHEMAS IN CATALOG Example
SCHEMAS IN CATALOG Output