37.63. view_table_usage
视图view_table_usage
标识被使用在一个视图的查询表达式(定义该视图的SELECT
语句)中的所有表。只有被一个当前已被启用角色拥有的表才会被包括在这个视图中。
注意
系统表没有被包括。这应当会在某个时候被修复。表 37.61. view_table_usage
列
名称 | 数据类型 | 描述 |
---|---|---|
view_catalog |
sql_identifier |
包含该视图的数据库名(总是当前数据库) |
view_schema |
sql_identifier |
包含该视图的模式名 |
view_name |
sql_identifier |
该视图的名称 |
table_catalog |
sql_identifier |
包含被该视图所使用的表的数据库名(总是当前数据库) |
table_schema |
sql_identifier |
包含被该视图所使用的表的模式名 |
table_name |
sql_identifier |
包含被该视图所使用的表的名称 |