Skip to main content
Lists the tables within a schema of an existing catalog, as its external source reports them.
SHOW TABLES 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 tables will be listed.

<database name>

Database within the catalog holding the schema whose tables will be listed. If omitted, the schema is looked up in the catalog’s default database.

<schema name>

Schema within the catalog whose tables will be listed. If omitted, the catalog’s SCHEMA option is used—see Catalog Options.
The tables listed depend on the type of catalog:
  • A JDBC catalog over a source with no schemas, such as MySQL, takes a database name in place of the schema name.
  • An Apache Iceberg catalog has namespaces instead of schemas, and lists the tables in the one namespace given (e.g., sales.eu).

Response

A four-column result set of DATABASE_NAME, SCHEMA_NAME, TABLE_NAME, & TABLE_TYPE.

Examples

To list the tables within a schema of a JDBC catalog:
SHOW TABLES IN CATALOG Example