Syntax
Parameters
Example
Say we create the tablet3 in the public schema and a view v3.
SHOW VIEWS to show the existing views.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the SHOW VIEW command to list existing views in a particular schema.
SHOW VIEWS [ FROM schema_name ] [ LIKE_expression ];
| Parameter or clause | Description |
|---|---|
| schema_name | The schema from which existing views will be listed. If not given, views from the default schema, “public”, will be listed. |
| LIKE_expression | Filters the output based on names by applying pattern matching. See details in LIKE pattern matching expressions. |
t3 in the public schema and a view v3.
CREATE TABLE IF NOT EXISTS t3 (
v1 int,
v2 int,
v3 int)
WITH (appendonly = 'true');
CREATE VIEW v3 AS SELECT sum(v2) AS sum_v2 FROM t3;
SHOW VIEWS to show the existing views.
SHOW VIEWS FROM public;
v3
Was this page helpful?