Commands
SHOW VIEWS
Use the SHOW VIEW
command to list existing views in a particular schema.
Syntax
Parameters
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. |
Example
Say we create the table t3
in the public
schema and a view v3
.
Then we can use SHOW VIEWS
to show the existing views.
Related topics
Was this page helpful?