# Information Schema VIEWS Table

The [Information Schema](https://mariadb.com/docs/server/reference/system-tables/information-schema) `VIEWS` table contains information about [views](https://mariadb.com/docs/server/server-usage/views). The `SHOW VIEW` [privilege](https://mariadb.com/docs/server/reference/sql-statements/account-management-sql-statements/grant) is required to view the table.

It has the following columns:

| Column                 | Description                                                                                                                                                                                                                                                                                                                              |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TABLE\_CATALOG         | Aways def.                                                                                                                                                                                                                                                                                                                               |
| TABLE\_SCHEMA          | Database name containing the view.                                                                                                                                                                                                                                                                                                       |
| TABLE\_NAME            | View table name.                                                                                                                                                                                                                                                                                                                         |
| VIEW\_DEFINITION       | Definition of the view.                                                                                                                                                                                                                                                                                                                  |
| CHECK\_OPTION          | YES if the WITH CHECK\_OPTION clause has been specified, NO otherwise.                                                                                                                                                                                                                                                                   |
| IS\_UPDATABLE          | Whether the view is updatable or not.                                                                                                                                                                                                                                                                                                    |
| DEFINER                | Account specified in the DEFINER clause (or the default when created).                                                                                                                                                                                                                                                                   |
| SECURITY\_TYPE         | SQL SECURITY characteristic, either DEFINER or INVOKER.                                                                                                                                                                                                                                                                                  |
| CHARACTER\_SET\_CLIENT | The client [character set](https://mariadb.com/docs/server/reference/data-types/string-data-types/character-sets) when the view was created, from the session value of the [character\_set\_client](https://mariadb.com/docs/server/server-management/variables-and-modes/server-system-variables#character_set_client) system variable. |
| COLLATION\_CONNECTION  | The client [collation](https://mariadb.com/docs/server/reference/data-types/string-data-types/character-sets) when the view was created, from the session value of the [collation\_connection](https://mariadb.com/docs/server/server-management/variables-and-modes/server-system-variables#collation_connection) system variable.      |
| ALGORITHM              | The algorithm used in the view. See [View Algorithms](https://mariadb.com/docs/server/server-usage/views/view-algorithms).                                                                                                                                                                                                               |

## Example

```sql
SELECT * FROM information_schema.VIEWS\G
*************************** 1. row ***************************
       TABLE_CATALOG: def
        TABLE_SCHEMA: test
          TABLE_NAME: v
     VIEW_DEFINITION: SELECT `test`.`t`.`qty` AS `qty`,`test`.`t`.`price` AS `price`,(`test`.`t`.`qty` * `test`.`t`.`price`) AS `value` FROM `test`.`t`
        CHECK_OPTION: NONE
        IS_UPDATABLE: YES
             DEFINER: root@localhost
       SECURITY_TYPE: DEFINER
CHARACTER_SET_CLIENT: utf8
COLLATION_CONNECTION: utf8_general_ci
           ALGORITHM: UNDEFINED
```

## See Also

* [CREATE VIEW](https://mariadb.com/docs/server/server-usage/views/create-view)
* [ALTER VIEW](https://mariadb.com/docs/server/server-usage/views/alter-view)
* [DROP VIEW](https://mariadb.com/docs/server/server-usage/views/drop-view)
* [SHOW CREATE VIEWS](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-create-view)

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/server-usage/views/information-schema-views-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
