> ## Documentation Index
> Fetch the complete documentation index at: https://docs.risingwave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW VIEWS

> Use the `SHOW VIEW` command to list existing views in a particular schema.

## Syntax

```sql theme={null}
SHOW VIEWS [ FROM schema_name ] [ LIKE_expression ];
```

## Parameters

| Parameter or clause | Description                                                                                                                                                                                                                                                                                                                                 |
| :------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| *schema\_name*      | The schema from which existing views will be listed. If not specified, views from all schemas in the current schema [search\_path](https://docs.risingwave.com/operate/view-configure-runtime-parameters#how-to-view-runtime-parameters:~:text=multi%20point%20lookup.-,search_path,-%E2%80%9D%24user%E2%80%9D%2C%20public) will be listed. |
| LIKE\_expression    | Filters the output based on names by applying pattern matching. See details in [LIKE pattern matching expressions](/sql/functions/string#like-pattern-matching-expressions).                                                                                                                                                                |

## Example

Say we create the table `t3` in the `public` schema and a view `v3`.

```sql theme={null}
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;
```

Then we can use `SHOW VIEWS` to show the existing views.

```sql theme={null}
SHOW VIEWS FROM public;
```

```bash theme={null}
        Name
---------------------
public.v1
public.v2
(2 rows)
```

<Note>
  Starting from v2.7.0, the `name` column in the output includes the schema name as a prefix (e.g., `public.view_name`). This helps distinguish views with the same name in different schemas when querying across multiple schemas in the search path.
</Note>

## Related topics

<CardGroup>
  <Card title="CREATE VIEW" icon="circle-plus" iconType="solid" href="/sql/commands/sql-create-view" />

  <Card title="SHOW CREATE VIEW" icon="eye" iconType="solid" href="/sql/commands/sql-show-create-view" />
</CardGroup>
