バージョンごとのドキュメント一覧

37.63. view_column_usage #

The view <literal>view_column_usage</literal> identifies all columns that are used in the query expression of a view (the <command>SELECT</command> statement that defines the view). A column is only included if the table that contains the column is owned by a currently enabled role. view_column_usageビューは、ビューの問い合わせ式(ビューを定義するSELECT文)で使用される全ての列を示します。 現在有効なロールがその列を含むテーブルの所有者であるもののみが含まれます。

注記

Columns of system tables are not included. This should be fixed sometime. システムテーブルの列は含まれません。 これはいつか修正しなければなりません。

表37.61 view_column_usageの列

<title><structname>view_column_usage</structname> Columns</title>

Column Type 列 型

Description 説明

view_catalog sql_identifier

Name of the database that contains the view (always the current database) ビューを持つデータベースの名前です(常に現在のデータベースです)。

view_schema sql_identifier

Name of the schema that contains the view ビューを持つスキーマの名前です。

view_name sql_identifier

Name of the view ビューの名前です。

table_catalog sql_identifier

Name of the database that contains the table that contains the column that is used by the view (always the current database) ビューで使用される列を持つテーブルが含まれるデータベースの名前です (常に現在のデータベースです)。

table_schema sql_identifier

Name of the schema that contains the table that contains the column that is used by the view ビューで使用される列を持つテーブルが含まれるスキーマの名前です。

table_name sql_identifier

Name of the table that contains the column that is used by the view ビューで使用される列を持つテーブルの名前です。

column_name sql_identifier

Name of the column that is used by the view ビューで使用される列の名前です。