VIEWS
VIEWS 表提供了当前用户可见的视图(View)列表。
1. DESC TABLE INFORMATION_SCHEMA.VIEWS;
1. +----------------------+---------+------+------+---------+---------------+
2. | Column | Type | Key | Null | Default | Semantic Type |
3. +----------------------+---------+------+------+---------+---------------+
4. | table_catalog | String | | NO | | FIELD |
5. | table_schema | String | | NO | | FIELD |
6. | table_name | String | | NO | | FIELD |
7. | view_definition | String | | NO | | FIELD |
8. | check_option | String | | YES | | FIELD |
9. | is_updatable | Boolean | | YES | | FIELD |
10. | definer | String | | YES | | FIELD |
11. | security_type | String | | YES | | FIELD |
12. | character_set_client | String | | YES | | FIELD |
13. | collation_connection | String | | YES | | FIELD |
14. +----------------------+---------+------+------+---------+---------------+
表中的列:
table_catalog: 视图所属 catalog 的名称。table_schema: 视图所属数据库的名称。table_name: 视图名称。view_definition: 视图的定义,即创建视图时的SELECT语句。check_option: 不支持,始终为NULL。is_updatable: 视图是否可以进行UPDATE/INSERT/DELETE操作,始终为NO。definer: 创建视图的用户的名称。security_type: 不支持,始终为NULL。character_set_client: 创建视图时character_set_client会话变量的值,始终为utf8。collation_connection: 创建视图时collation_connection会话变量的值,始终为utf8_bin。
