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
IN / FROM
Interchangeable keywords preceding the catalog name.
<catalog name>
<catalog name>
Name of the existing catalog whose schemas will be listed.
<database name>
<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.- 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 ofDATABASE_NAME & SCHEMA_NAME.
Examples
To list the schemas within a JDBC catalog:SHOW SCHEMAS IN CATALOG Example
SCHEMAS IN CATALOG Output