Skip to main content

Syntax

SHOW TABLES [ FROM schema_name ] [ LIKE_expression ];

Parameters

Parameter or clauseDescription
schema_nameThe schema in which tables will be listed. If not specified, tables from all schemas in the current schema search_path will be listed.
LIKE_expressionFilters the output based on names by applying pattern matching. See details in LIKE pattern matching expressions.

Example

SHOW TABLES FROM public LIKE 't_';
        Name
---------------------
public.t1
public.t2
(2 rows)
Starting from v2.7.0, the name column in the output includes the schema name as a prefix (e.g., public.t1). This helps distinguish tables with the same name in different schemas when querying across multiple schemas in the search path.