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

# SHOW SEMANTIC VIEWS

> List the semantic views in the current or a specified database, or show one of them.

## Description

Lists all semantic views in the current or a specified database. The singular form
`SHOW SEMANTIC VIEW <view_name>` returns the same columns for one named view.

## Syntax

```SQL theme={null}
SHOW SEMANTIC VIEWS
  [(FROM | IN) [<catalog>.]<db>]
  [LIKE '<pattern>']
  [WHERE <predicate>]

SHOW SEMANTIC VIEW [<db>.]<view_name>
```

## Parameters

| Parameter | Required | Description |
| - | - | - |
| `FROM` / `IN` | No | Database to list semantic views from. Can include a catalog prefix. Defaults to the current database. |
| `LIKE` | No | Pattern to filter view names. Supports `%` and `_` wildcards. |
| `WHERE` | No | Predicate applied to the result columns to further filter rows. |
| `view_name` | Yes, for the singular form | Name of one semantic view, optionally qualified with a database. |

## Return value

Both forms return the same four columns.

| Column | Description |
| - | - |
| `Name` | Name of the semantic view. |
| `Comment` | The view-level `COMMENT` from its definition. |
| `AI_SQL_GENERATION` | The view-level `AI_SQL_GENERATION` instructions, empty when none were set. |
| `AI_QUESTION_CATEGORIZATION` | The view-level `AI_QUESTION_CATEGORIZATION` instructions, empty when none were set. |

## Examples

```SQL theme={null}
-- List all semantic views in the current database
SHOW SEMANTIC VIEWS;

-- List semantic views in a specific database
SHOW SEMANTIC VIEWS FROM sales_db;

-- Filter by name pattern
SHOW SEMANTIC VIEWS LIKE '%revenue%';

-- Show one semantic view
SHOW SEMANTIC VIEW sales_db.order_metrics;
```

```Plain theme={null}
+---------------+---------------------------+-------------------+----------------------------+
| Name          | Comment                   | AI_SQL_GENERATION | AI_QUESTION_CATEGORIZATION |
+---------------+---------------------------+-------------------+----------------------------+
| order_metrics | Order revenue by customer |                   |                            |
+---------------+---------------------------+-------------------+----------------------------+
```

## See also

* [CREATE SEMANTIC VIEW](/documents/4.2/sql-reference/sql-statements/semantic-view/CREATE_SEMANTIC_VIEW.md)
* [DROP SEMANTIC VIEW](/documents/4.2/sql-reference/sql-statements/semantic-view/DROP_SEMANTIC_VIEW.md)
* [SHOW CREATE SEMANTIC VIEW](/documents/4.2/sql-reference/sql-statements/semantic-view/SHOW_CREATE_SEMANTIC_VIEW.md)
* [SHOW FACTS, METRICS, DIMENSIONS, and COLUMNS](/documents/4.2/sql-reference/sql-statements/semantic-view/SHOW_SEMANTIC_VIEW_COLUMNS.md)
* [Semantic views](/documents/4.2/using_starrocks/semantic_view.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.