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

37.66. views #

The view <literal>views</literal> contains all views defined in the current database. Only those views are shown that the current user has access to (by way of being the owner or having some privilege). viewsビューには、現在のデータベースで定義されたすべてのビューがあります。 現在のユーザが(所有者である、何らかの権限を持っているといった方法で)アクセスすることができるビューのみが表示されます。

表37.64 viewsの列

<title><structname>views</structname> Columns</title>

Column Type 列 型

Description 説明

table_catalog sql_identifier

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

table_schema sql_identifier

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

table_name sql_identifier

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

view_definition character_data

Query expression defining the view (null if the view is not owned by a currently enabled role) ビューを定義する問い合わせ式です (現在有効なロールがビューの所有者でない場合はNULLです)。

check_option character_data

<literal>CASCADED</literal> or <literal>LOCAL</literal> if the view has a <literal>CHECK OPTION</literal> defined on it, <literal>NONE</literal> if not ビューにCHECK OPTIONが定義されている場合はCASCADEDまたはLOCAL、さもなくばNONEです。

is_updatable yes_or_no

<literal>YES</literal> if the view is updatable (allows <command>UPDATE</command> and <command>DELETE</command>), <literal>NO</literal> if not ビューが更新可能(UPDATEおよびDELETEが可能)な場合YES、さもなくばNOです。

is_insertable_into yes_or_no

<literal>YES</literal> if the view is insertable into (allows <command>INSERT</command>), <literal>NO</literal> if not ビューが挿入可能(INSERTが可能)な場合YES、さもなくばNOです。

is_trigger_updatable yes_or_no

<literal>YES</literal> if the view has an <literal>INSTEAD OF</literal> <command>UPDATE</command> trigger defined on it, <literal>NO</literal> if not ビューにINSTEAD OF UPDATEトリガーが定義されている場合はYES、さもなくばNOです。

is_trigger_deletable yes_or_no

<literal>YES</literal> if the view has an <literal>INSTEAD OF</literal> <command>DELETE</command> trigger defined on it, <literal>NO</literal> if not ビューにINSTEAD OF DELETEトリガーが定義されている場合はYES、さもなくばNOです。

is_trigger_insertable_into yes_or_no

<literal>YES</literal> if the view has an <literal>INSTEAD OF</literal> <command>INSERT</command> trigger defined on it, <literal>NO</literal> if not ビューにINSTEAD OF INSERTトリガーが定義されている場合はYES、さもなくばNOです。